Week of Sunday breaks in 2018

toddlerzz

Board Regular
Joined
Oct 21, 2007
Messages
53
I am trying to do a formula for a date that shows the week of with Sundays date. I am using:

=AC2-WEEKDAY(AA2,3) which returns the week of date as Sunday for my 2017 dates.

For some reason when the date changes to 2018, the formula is then giving Monday as the week of date instead of Sunday.

Any way to fix this?

For example, Dec 31, 2017 shows week of as Dec 31, 2017 but then Jan 2, 2018 shows week of as Jan 1, 2018 instead of Dec 31, 2017

Thanks.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Depends what's in AC2 and AA2. Also, I think you need to number Monday (1) to Sunday (7). What result do you want for a Sunday? Two suggestions:

Sunday goes back 7 days:

=AC2-WEEKDAY(AC2,2)

Sunday stays "as-is":

=AC2-MOD(WEEKDAY(AC2,2),7)

WBD
 
Last edited:
Upvote 0
Depends what's in AC2 and AA2. Also, I think you need to number Monday (1) to Sunday (7). What result do you want for a Sunday? Two suggestions:

Sunday goes back 7 days:

=AC2-WEEKDAY(AC2,2)

Sunday stays "as-is":

=AC2-MOD(WEEKDAY(AC2,2),7)

WBD

Thanks WBD, second option gives me what I needed.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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