Auto-update dates every week with script or formula?

200 views
Skip to first unread message

Daronmal

unread,
Mar 2, 2023, 10:51:31 AM3/2/23
to Google Apps Script Community
I need to track weekly transactions, I already have a way to reset the user inputs at the end of the week, but I need a way to auto update the dates, it could be done manually but it's a bunch of dates to remember to all change at once and could make a lot of issues if they're not updated.

I couldn't really find any basic formulas or commands doing exact what I wanted or close to it. I plan to just set it on a timer to run at the end of the day Friday every week if it's a script.

Ugochi Ukpai

unread,
Mar 3, 2023, 11:24:04 AM3/3/23
to Google Apps Script Community
Hello Daronmal,

Can you please share more information on this? Are you trying to change the date on Fridays?

Maliha Syeda

unread,
Mar 6, 2023, 3:50:50 PM3/6/23
to Google Apps Script Community
Not sure if this is what you're looking for, but I found this to auto update the dates each week. You can put this in one cell & then just use the cell reference + 1 for the rest of the days of the week, it's been working well. What I don't have is a way to reset the schedule at the end of the week so if you're able to help with that, it would be appreciated! 

=if(WEEKDAY(today(),2)=7,today(),today()-WEEKDAY(today(),2))

Reply all
Reply to author
Forward
0 new messages