Formula to find a "week ending" Sunday Date

sunday_storyteller

Board Regular
Joined
Jun 22, 2007
Messages
51
I need help with a formula. I have a certain list of dates, by day...and I need them listed by "week ending" (where a week "ends" on a Sunday).

For example, for the week ending 5/23, I might have the dates:
5/23/10 (Sunday) - the formula should pull 5/23/10
5/22/10 (Saturday) - the formula should pull 5/23/10

And if the date was earlier...say 5/11/10...it should return "5/16/10" because that is the Sunday of the week that contained 5/11/10.

I know there is a way to do this with the Weekdays function combined in a formula, but I don't remember what it is. Does anyone know?

Thanks!

SundayST
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hello,

I'm assuming your date is in cell E3 for which you are looking to get the sunday for that week.
Here is the formula that does the trick for you:

=(7-WEEKDAY(E3,2))+E3

Pls let me know if this helps.
 
Upvote 0
This formula appears to work when I tested it. The cell in which the formula below is posted will keep the same date as in A1 if the date in A1 is a Sunday. But it will give you the following Sunday if the date is not a Sunday.

=IF(WEEKDAY(A1)<=1,A1+1-WEEKDAY(A1),A1+8-WEEKDAY(A1))

Hope this helps.

---dave
 
Upvote 0
Hello,

I'm assuming your date is in cell E3 for which you are looking to get the sunday for that week.
Here is the formula that does the trick for you:

=(7-WEEKDAY(E3,2))+E3

Pls let me know if this helps.


Thank you so much, I have been looking for this formula for over a day
 
Upvote 0
I'm starting to use this function more:
=WORKDAY.INTL(A1 - 1, 1, "1111110")
 
Upvote 0

Forum statistics

Threads
1,226,587
Messages
6,191,875
Members
453,684
Latest member
Gretchenhines

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