Week Of Formula

Ima_learnin'

Active Member
Joined
Dec 14, 2002
Messages
266
Hello All,
I have a cell with =TODAY()...In another cell I need a formula that always gives me the date of the sunday before whatever today is.

As always thanks, Ima Learnin'
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
longer, but another route through an if fx:
=IF(WEEKDAY(TODAY())>=1,(TODAY()-WEEKDAY(TODAY()-1))-7,TODAY())
 
Upvote 0
Re: week of formula

sorry about the confustion, my bad, try this:
=TODAY()-WEEKDAY(TODAY())-6

edit: substitute today() for date of choosing to test.
 
Upvote 0
Originally posted by north19701:
=TODAY()-MOD(TODAY()-1,7)
The above will return the date of the previous Sunday, unless today is Sunday, in which case it will return today's (current) date. The following also works, except that it always returns the date of the previous Sunday:

=TODAY()-WEEKDAY(TODAY()-1)

Also, for any date in cell A1:

=A1-WEEKDAY(A1-1)

will return the date of the previous Sunday.
 
Upvote 0
rrdonutz said:
The following also works, except that it always returns the date of the previous Sunday:

=TODAY()-WEEKDAY(TODAY()-1)...

i could only get it to return the previous friday...can you check??
 
Upvote 0
Upvote 0
thanks!

i don't know what i did, but it threw me for a doosy! i see what i did (as i'm sure so does everyone else :oops: ). i was the one with the friday! i bet i sounded like a hipocrit (spelling??). so i apologize.

Yogi, thanks!
Tom, thanks! and sorry for the confusion there.
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,142
Members
448,551
Latest member
Sienna de Souza

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