is answer right?

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
983
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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
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))
 

bam12

Well-known Member
Joined
Dec 6, 2004
Messages
983
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
 

Forum statistics

Threads
1,181,102
Messages
5,928,069
Members
436,586
Latest member
latintxn

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
Top