I’ve created myself a budget tracker where I can track what I bought and how much I spent across a few categories. I specified column B (purchase entries are rows) to be the date and time at which I made a purchase using a conditional formula and today() that populates the cell with the date as for when an entry is made in that row.
I soon found out that today() auto refreshes when the worksheet is modified. Is there another way to write this to fit my needs for more of an automatic timestamp? I’m reluctant to hand jamming the date because I already am using Google sheets on my phone to enter most entries and it’s time-consuming enough.
Best Answer
if( s.getName() == "Sheet1" ) {
- changeSheet1
if your sheet has a different nameif( r.getColumn() == 1 ) {
- change1
if your non-date data are not in A columnvar nextCell = r.offset(0, 1);
- change1
to move date stamp further than next columnnextCell.setValue(new Date() "GMT+2");
- changeGMT+2
to mach your timezone