Date Calculation

fulanito_uk

New Member
Joined
Nov 30, 2015
Messages
42
Office Version
  1. 2010
Platform
  1. Windows
Good morning,
I have a question about a sheet I am doing I will give some context.

I have 3 possible status options OPEN, MAYBE, CLOSED,
If the status is OPEN or MAYBE i need the NETWORKDAYS to calculate from DATE 1 (A) and DATE 3 (D)
If the status is CLOSED I need the NETWORKDAYS to calculate from DATE 2 (B) and DATE 3 (D).

1597585995290.png


If you need any more information for my side please let me know and Thank you very much for your help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Book1
ABCDE
1DATE1DATE 2STATUSDATE 3NETWORK DAYS
201/01/2020OPEN02/02/202023
302/01/2020MAYBE02/02/202022
403/01/202001/01/2020CLOSED02/02/202023
Sheet3
Cell Formulas
RangeFormula
E2:E4E2=IF(OR(C2={"Open","Maybe"}),NETWORKDAYS.INTL(A2,D2,1),NETWORKDAYS.INTL(B2,D2,1))
 
Upvote 0
Thanks so much for getting back to me, your formula worked fine on my test table but when I try to move it to my real one the formula doesn't seem to work..
if G5 says CERRADO (closed in spanish) it should take the dates from H5 and I5 if any other text is in G5 should take the dates from H5 and B1.

Thx! Any ideas what i'm doing wrong?


1597589976535.png
 
Upvote 0
umm.. as its "Cerrado" should be days between 05/03/2020 and 05/03/2020 = 0 days ?
 
Upvote 0
Oops misread & was looking at col C
=NETWORKDAYS(H5,IF(G5="cerrado",I5,B$1))
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,361
Members
449,080
Latest member
Armadillos

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