IF-DATE NESTED FUNCTIONS

Kris138

New Member
Joined
Sep 20, 2003
Messages
5
HELP!!! I am currently working on a project in which my boss wants me to calcuate the difference between two dates. I was able to calculate the difference of dates using the Networkingdays, also using the >=0 for everything that was positive and hid those 0 numbers. Everything negative he wants to see. My dilemma is we have another column in-between those two dates that needs to be re-calculated into if the "target date" is changed. Therefore, I can't find a formula that will automatically change and pick up that middle column.

Any help?? :eek:
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Can you post -- using Colo's downloadable utility below -- a screenshot of your worksheet? What would you want done with a layout like this --
t63279m.xls
ABCD
1Net
2Date1OtherDtDate2Workdays
39/8/200212/12/20039/19/2003270
4
Sheet1
 
Upvote 0
Sounds fairly straightforward, but can you supply some data so that we can see exactly what you would like.
 
Upvote 0
Jon-Yours was sort of was I was trying to do. Here is a snapshot with my formula.

TA RT App Date Variance


9/12/03 9/13/03 9/18/03 #VALUE!
9/12/03 9/18/03 -6
09/15/03 9/15/03

Employees will send me that TA Date and the APP Date. We want to make the Variance number appear only if it is negative. Ex..the -6....but, employees will send me an a RT date (Revised date), so the formula in the Variance column must reflect that also
Sorry - I tried to send a snapshot, but I am very new at this message board!!!

THANKSSS!!!!
Any suggestions?
 
Upvote 0
in your 1st line, w/ the 3 dates -- what is the number you would want to see were you are currently getting the VALUE error?
 
Upvote 0
Both of your answers have been on the right track.

The # Value is coming up because I put a nested function (defined them so that I could get over 7 functions into it), the formula was =If(or(X4-Z4)<=0,(X4-Z4),(Y4-Z4)>=0," ",IF(OR(X4-Z4)>=0," ", (Y4-Z4)<=0,(Y4-Z4))).\

Meaning, for example, the first row would count the days 9/18/03 (Approval Date) to Target Date (9/12/03). It was -6 days overdue. But, there was a revised target date (the middle number) on 9/13/03, making the Variance column to be -5 instead.

Maybe I am doing this all wrong?
 
Upvote 0
Going to have to leave now, but see if the below is a start:
t63279m.xls
ABCD
1Net
2TADateRTDateAPPDateWorkdays
39/12/20039/18/2003-5
49/12/20039/13/20039/18/2003-4
59/12/20039/10/2003 
Sheet1

Formula in D3, copied down is:

=IF(B3>A3,NETWORKDAYS(C3,B3),IF(C3>A3,NETWORKDAYS(C3,A3),""))

Belated welcome to the board!
 
Upvote 0
Try the below instead --
t63279m.xls
ABCD
1Net
2TADateRTDateAPPDateWorkdays
39/12/20039/18/2003-5
49/12/20039/13/20039/18/2003-4
59/12/20039/10/2003 
69/12/20039/14/20039/10/2003 
Sheet1


D3: =IF(AND(B6>A6,C6>A6),NETWORKDAYS(C6,B6),IF(C6>A6,NETWORKDAYS(C6,A6),""))
 
Upvote 0
I was going to try it this way, but does anyone know how to do it w/o the networkingdays? I don't currently have that add-in installed.

THANKS!
 
Upvote 0

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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