Monday and Date addition/subtraction

Pumpk1n

Board Regular
Joined
Jan 31, 2017
Messages
86
Office Version
  1. 365
Platform
  1. Windows
Hello.

I have a start date (12/31/21) from which I am adding/subtracting to determine what that date should be. For example, my formula is =WORKDAY($B$1+35,1) or =WORKDAY($B$1-120,1)

What I would really want is the start of the week (Monday). I can't quite nail the formula to add/subtract days to get a Monday start date. Also, if the addition of the number of days brings me to a Wednesday (as an example), I'd want it to be the Monday before versus the Monday following.

Thanks in advance!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi,

This should do as you described.

You can also use cell references for the days to add/subtract:

Book3.xlsx
BCDEFG
1DateAddedSubtractedDays to addDays to subtract
212/31/20212/7/20228/30/202135120
312/29/20211/31/20228/30/2021
412/15/20211/17/20228/16/2021
512/31/20212/7/20228/30/2021
612/29/20211/31/20228/30/2021
712/15/20211/17/20228/16/2021
Sheet1039
Cell Formulas
RangeFormula
C2:C4C2=WORKDAY(B2+35,1)-WEEKDAY(WORKDAY(B2+35,1),3)
D2:D4D2=WORKDAY(B2-120,1)-WEEKDAY(WORKDAY(B2-120,1),3)
C5:C7C5=WORKDAY(B5+F$2,1)-WEEKDAY(WORKDAY(B5+F$2,1),3)
D5:D7D5=WORKDAY(B5-G$2,1)-WEEKDAY(WORKDAY(B5-G$2,1),3)
 
Last edited:
Upvote 0
Upvote 0
Solution
Thank you! I liked the int formula!

Can you help me with the end date using the same type of formula? For example, if the start date is 1/30/23, I'd like the formula to return a Friday. The number of days is in M3.
 
Upvote 0
An additional follow up question. If the end date is 12/31/22 and I subtract 84 days, it returns 9/5/22. The difference between the 9/5/22 and 12/31/22 is 116 days. Thanks in advance for helping me understand how this is date is being calculated.
 
Upvote 0
If the end date is 12/31/22 and I subtract 84 days, it returns 9/5/22. The difference between the 9/5/22 and 12/31/22 is 116 days.
You are using WORKDAY in your formula, and that doesn't count weekends!
So that is to be expected, right?
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

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