Date Formula Result to not return a weekend day

Carin

Board Regular
Joined
Feb 4, 2006
Messages
224
I am trying to add 20 days (not work days) to a date and for the result to show Monday's date if the result falls on a Saturday or Sunday. I can easily perform this task using two cells/two formulas but am very interested in how to do this in one cell.

I tried if statements using weekday but can't make it work.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
does this do what you want?


Book1
AB
1dayday plus 20
27/1/20197/22/2019
Sheet1
Cell Formulas
RangeFormula
B2=IF(WEEKDAY(A2+20,1)=1,A2+21,IF(WEEKDAY(A2+20,1)=7,A2+22,A2+20))
 
Upvote 0
Thank you so much! I was actually on the right track but for whatever reason didn't consider nesting the if statements. Again - thank you!!
 
Upvote 0
A couple of other options:


Book1
ABC
1dayday + 20
210-Jul30-Jul30-Jul
330-Jul
Sheet2
Cell Formulas
RangeFormula
B2=A2+20
C2=A2+CHOOSE(WEEKDAY(A2+20),21,20,20,20,20,20,20,22)
C3=A2+20+MAX(0,3-WEEKDAY(A2+20,16))


I think the C2 formula is pretty clear. The C3 formula is shortest, but probably the most obscure.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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