Workdays with edate

Gazlar

Board Regular
Joined
Aug 3, 2012
Messages
101
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

i am trying to get edate working with workday.

I have this but keep getting errors


=IF(H950="1 month",WORKDAY(EDATE(E950,1),IF(H950="Hold (12 months)",WORKDAY(EDATE(E950,12),""))))



I Need it to only calculate workdays and not weekends. I use the below, but it includes weekends.

=IF(H954="1 month",EDATE(E954,1),IF(H954="Hold (12 months)",EDATE(E954,12),""))

you help is appreciated.

Gary
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
The WORKDAY formula is missing arguments probably due to misplaced brackets. Assuming you are looking for the first working day 1 or 12 months after, please try:
Excel Formula:
=IF(H950="1 month",WORKDAY(EDATE(E950,1)-1,1),IF(H950="Hold (12 months)",WORKDAY(EDATE(E950,12)-1,1),""))
 
Upvote 0
The WORKDAY formula is missing arguments probably due to misplaced brackets. Assuming you are looking for the first working day 1 or 12 months after, please try:
Excel Formula:
=IF(H950="1 month",WORKDAY(EDATE(E950,1)-1,1),IF(H950="Hold (12 months)",WORKDAY(EDATE(E950,12)-1,1),""))
It works excellent, but the double “” on the end doesn’t, it tells me too many arguments and I need the cell to be blank if no date is calculated.
 
Upvote 0
Works fine here, can you upload by Xl2bb or screenshot what went wrong?

Book1
ABCDEFGH
9506/1/20215/1/20211 month
9515/2/20225/1/2021Hold (12 months)
952 5/1/2021x
Sheet1
Cell Formulas
RangeFormula
A950:A952A950=IF(H950="1 month",WORKDAY(EDATE(E950,1)-1,1),IF(H950="Hold (12 months)",WORKDAY(EDATE(E950,12)-1,1),""))
 
Upvote 0
Thank you, this does work, I noticed that I missed the 2nd workday( out, put it in a nd it works like a dream,.

very much appreciated thanks for all your help.

Gaz
 
Upvote 0
You are welcome, glad it works, thanks for the feedback!
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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