Hello I was wondering if someone could help me make a row where for example if i type something in B1, A1 automatically inserts the date so i dont need to put it manually. I read on forums but i don't understand how to do it. Here is a post i found https://ask.libreoffice.org/en/questi... That Lupo made 2 examples of it. i want it like that but i donno how to set it up for my own file. i can't upload any file now . but if you scroll down on that page, he attached 2 examples. https://ask.libreoffice.org/upfiles/1.... Thats how i want my file to be like. Could someone please help me make something like that? Thank you so much

edit retag close merge delete

Sort by » oldest newest most voted

To put date or a time in quickly. Hold down Ctrl+; that will put in today's date. Ctrl+Shift+; will put in the time. You still have to put it in, but until you find something this will be easy and quick. I really do no believe a spread sheet only will put a time in automatically AND STAY THAT WAY, it will change EACH days to the present, or current day! So then, in a weeks time, all dates will be same. A variable is needed for that which a spread sheets do not have.

more

Hi there, I checked one of the files and the formula in cell "a11" is as follows : =IF(B11="","",IF(A11="",NOW(),A11))

A quick overview of the if statement from the help menu!

IF Specifies a logical test to be performed. Syntax IF(Test; ThenValue; OtherwiseValue) Test is any value or expression that can be TRUE or FALSE. ThenValue (optional) is the value that is returned if the logical test is TRUE.

So to breakdown the formula in cell a11,

If the value in b11 is blank then the value in a11 is blank. If there is a value in b11, it then checks the value in a11, if blank it then updates "a11" with the current date / time, if there is a value already in it A11 it doesn't change anything. Just to date / time printed depends on how the cell is formatted.

The only thing that you would need to update in your file is to change the row number (in this case 11) with the row(s) to match the row with the data and copy down the formula and possibly the formatting of the cell.

Hope this helps. Any questions feel free to post again.

more

This normally results in Err:522 if B11 is not empty, because of the recursion / circular reference involved (A11 asks itself). You'd have to allow iterations to make the error disappear, then the result will be 0 first and when re-entering a value to B11 the date will show. However, usually one does not want to enable iterations as it may lead to unexpected results when formulas are entered that unintended lead to circular references.

( 2018-02-05 13:18:44 +0200 )edit

Hello @CCGirl,

To automatically insert the current date ( or timestamp ) into your cell A1 whenever something is typed in cell B1, just perform the following steps:

2. in the Formula Bar, enter the formula =IF(B1<>"";NOW();"");
3. Right-click inside your cell B1, and choose the menuitem “Format Cells...”;
4. In the dialog that appears, select the tab “Numbers”;
5. In the listbox “Category”, select the item “Date”;
6. In the listbox “Format”, scroll down to select your preferred Date/Time format.
7. Click OK.

Hope it helps, lib

more