IF Statement using Networkdays.intl formula

CapeSable

New Member
Joined
Aug 23, 2019
Messages
2
I am trying to build a formula that will calculate after determining if a start and end date are equal to or between a calendar (fiscal) start and end date.

The formula I have is:
=IF(AND($J$9<=N$4,$K$9>=N$5)*1=1,(N$6*$L$9),IF(AND($J$9<=N$4,$K$9>=N$5)*1=0,IF(AND($J$9<=N$4,$K$9>=N$5)*1=0,(NETWORKDAYS.INTL(N$4,$K$9,1,Holidays)*$L$9),0)))

My worksheet looks like this:

JKLMNOPQRSTUV
5Fiscal Start9/20/199/28/1910/1/1910/26/1911/1/1911/23/1912/1/191/1/201/25/20
6Fiscal End9/27/199/30/1910/25/1910/31/1911/22/1911/30/1912/31/191/24/201/31/20
7Net Wrk Days61184154211675
8POPSPOPEWrk Hrs
909/20/1911/03/198Program Mgr488144328-112-144-312

<tbody>
</tbody>

The first part of the formula is calculating as desired, however, I am not getting a "0" result once the POP dates are out of range of the fiscal start and end dates.

Can someone please advise how to fix the formula or suggest another formula to get the desired data?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,

try something like this:


Book1
JKLMNOPQRSTUV
5Fiscal Start20-9-201928-9-20191-10-201926-10-20191-11-201923-11-20191-12-20191-1-202025-1-2020
6Fiscal End27-9-201930-9-201925-10-201931-10-201922-11-201930-11-201931-12-201924-1-202031-1-2020
7Net Wrk Days61184154211675
8POPSPOPEWrk Hrs
920-9-20193-11-20198Program Mgr488144328-112-144-312
104881523280000
Sheet1
Cell Formulas
RangeFormula
N10=IF(OR(N6<$J9,$K9),0,NETWORKDAYS.INTL(MAX($J9,N5),MIN($K9,N6),1,))*$L9
<n5),0,networkdays.intl(max($j9,n5),min($k9,n6),1,holidays))*$l9

<n5),0,networkdays.intl(max($j9,n$5),min($k9;n$6),1, holidays))*$l9<="" html=""></n5),0,networkdays.intl(max($j9,n$5),min($k9;n$6),1,></n5),0,networkdays.intl(max($j9,n5),min($k9,n6),1,holidays))*$l9
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,504
Messages
6,114,020
Members
448,543
Latest member
MartinLarkin

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