How to calculate last date of a week from any date assuming that week starts on monday

Hrishi

Board Regular
Joined
Jan 25, 2017
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Hello, I want to calculate the last date of a week from any date with presumption that week starts from monday and ends on sunday. I have a formula
=IF(WEEKDAY(date)=7,date+1,date+(7-WEEKDAY(date)),,, BUT this does not work on date 1-1-17 and 31-12-18 etc may be it because this day is either monday or sunday.

Can anyone help me Plz????.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try one of these. They are slightly different in how they handle the last day of the week itself:

=A1-WEEKDAY(A1)+8
=A1-((WEEKDAY(A1)<>1)*(WEEKDAY(A1)-8))
 
Upvote 0
Ya It worked very well, thanks ,,,Thank you so much....
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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