# Week Of Formula

#### Ima_learnin'

##### Active Member
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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

#### north19701

##### Active Member
=TODAY()-MOD(TODAY()-1,7)

#### Zack Barresse

##### MrExcel MVP
longer, but another route through an if fx:
=IF(WEEKDAY(TODAY())>=1,(TODAY()-WEEKDAY(TODAY()-1))-7,TODAY())

#### Ima_learnin'

##### Active Member
You guys are incredible!

Thanks,Ima Learnin'

#### Zack Barresse

##### MrExcel MVP

Re: week of formula

=TODAY()-WEEKDAY(TODAY())-6

edit: substitute today() for date of choosing to test.

#### rrdonutz

##### Well-known Member
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.

#### Zack Barresse

##### MrExcel MVP

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??

#### Zack Barresse

##### MrExcel MVP
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 ). 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.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,168,037
Messages
5,856,967
Members
431,843
Latest member
Malahhai

### 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.

### Which adblocker are you using?

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

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