Counting Dates (Complicated)

scott11

New Member
Joined
Sep 13, 2016
Messages
37
Hello,

I have the following formula in cell D9: =IF(ISNUMBER($E9),IF(F9>0,F9-E9,TODAY()-E9), " "). This indicates the number of days that have past since my Start Date and stops counting after I input my End Date, however, I would like to modify it to include only NETWORKDAYS. In addition, if I put a date that is past TODAY's current date, I receive a negative number. Ideally, I would prefer cell D9 to have a 0 value, until that future date turns into TODAY's date and then start counting.

My second formula in cell F8 is: =IF(MAX(F9:F13)>0,MAX(F9:F13),""). I do not want this cell to populate a date until either all cells in the range of F9:F13 have a date, or until cell C8 shows "100%" (C8 has the following formula: =SUMPRODUCT(C9:C13)/6.

1628861129856.png
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Does this do what you want?
Excel Formula:
=IF(ISNUMBER($E9),MAX(IF(F9>0,NETWORKDAYS(E9,F9),NETWORKDAYS(E9,TODAY())),0),"")
 
Upvote 0
Works like a charm, thanks Joe! Any luck with the second one by chance?
Is this what you are after?
Excel Formula:
=IF(AND(C8=100%,MAX(F9:F13)>0),MAX(F9:F13),"")

By the way, why is your formula in cell C8 divided by 6 and not 5?
There are only 5 cells in that range (C9:C13).
 
Upvote 0

Forum statistics

Threads
1,216,036
Messages
6,128,432
Members
449,452
Latest member
Chris87

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