Bug 108290 - Add function which will insert fixed date
Summary: Add function which will insert fixed date
Status: CLOSED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-01 18:51 UTC by Kruno
Modified: 2017-06-01 19:54 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kruno 2017-06-01 18:51:45 UTC
It will be very useful if there was a function which would insert fixed date. Functions NOW() and TODAY() are changed every time spreadsheet is updated but there are times when user want to insert fixed date. Example (in cell B1):

=IF(NOT(ISBLANK(A1)); FIXEDDATE(); "")

Let's say you want to add some invoice amount do a spredsheet, FIXEDDATE() function could automatically populate cell with today's date in B1 when amount is entered in A1.

People have been asking for this feature:

OOo: https://forum.openoffice.org/en/forum/viewtopic.php?f=9&t=82400
Google Sheets: https://productforums.google.com/forum/#!topic/docs/AD3EsxZVhG8

But only solutions are scripts and macros and very few users can effectively use them. It would be more convenient if this feature were available as a (plain) function.
Comment 1 Eike Rathke 2017-06-01 19:54:00 UTC
Think about it. How should FIXEDDATE() in a formula expression determine whether it was ever executed.

Rather use the Ctrl+; keyboard shortcut (or whatever keys your locale maps that to) to insert the current date into the current cell, if you don't want to use a macro that listens to an input cell and writes the date elsewhere.