How do I get Excel to automatically insert todays date and the current time in a cell, when I insert a value in another cell in the same row?
I know the CTRL + ; and CTRL + : shortcuts, but I would much prefer if the cell was just auto-filled.
|
How do I get Excel to automatically insert todays date and the current time in a cell, when I insert a value in another cell in the same row? I know the CTRL + ; and CTRL + : shortcuts, but I would much prefer if the cell was just auto-filled. |
|||
|
|
|
If you're happy writing VBA you can do this with the Here's some sample code which will write today's date and time in column B whenever you change a cell in column A:
If you need the change to happen in different columns just change the column numbers in:
and:
To get this code on your Worksheet hit |
|||||||
|
|
I guess you could pre fill the column with a formula of =if(cell1="";"";today()) but that would auto update every time you opened the spreadsheet, I don't think there's a way to get it to fill in the date at the point you fill in the cell then leave it at that date. Not without doing some programming anyway. |
|||
|