How to Automatically determine the date of the most recent

Mopacs

New Member
Joined
Mar 6, 2002
Messages
33
Hello again,

I have a question...is there a built-in function in Excel or a macro that can automatically determine the date of the most recent saturday?

For instance, say I run a particular report this coming Monday - April 1st(not always on monday, could be any day of the week). There is a header in the spreadsheet that says "Data as of MM/DD/YYYY" where the date is the most recent saturday relative to that day (april 1st)..where the date would display as "03/30/2002". Is there a way to dynaically determine this date.. regardless of what day the report is run, relative to the previous saturday?

Thanks in advance,

Rob
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try one of the following; edit references and text as necessary.

="Data as of : "&TEXT(TODAY()-WEEKDAY(TODAY(),3)-2,"ddd dd mmm yyyy")

="Data as of : "&TEXT(A50-WEEKDAY(A50,3)-2,"ddd dd mmm yyyy")
This message was edited by Dave Patton on 2002-03-29 11:08
 
Upvote 0
On 2002-03-29 11:06, Dave Patton wrote:
Try one of the following; edit references and text as necessary.

="Data as of : "&TEXT(TODAY()-WEEKDAY(TODAY(),3)-2,"ddd dd mmm yyyy")

="Data as of : "&TEXT(A50-WEEKDAY(A50,3)-2,"ddd dd mmm yyyy")
This message was edited by Dave Patton on 2002-03-29 11:08

BOTH of those worked to perfection.. THANKS!

Rob
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,425
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top