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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,222,022
Messages
6,163,447
Members
451,837
Latest member
gmc

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