is answer right?

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
985
Code:
If e45 has 7/4/07 in it and a45 is 0 d45 has 0

holidays is a list of holidays and 7/4 is one in the list

I am thinking the answer should be 7/5 in the celll with formula in it.
But it is 7/4

which one is right?
[/quote]
 

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.
I tend to agree that it is odd, but it is difficult to know what to do when adding 0 and the nominated date is a holiday, next working day or previous?

Here is a solution along your lines of thought

Code:
=IF(G45="",WORKDAY(WORKDAY(E45,-1,holidays),A45+D45+1,holidays),
WORKDAY(WORKDAY(G45,-1,holidays),A45+D45+1,holidays))
 
Upvote 0
problem

With the above mentioned example it not working right

if a45 has a3 in it and e45 had 9/3/07 in it then the date should be 9/6/07, but this formula is making it 9/7 which is wrong
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
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