Calling all experts! IF, AND, and NETWORKDAYS FUNCTION.

jwang776

New Member
Joined
Feb 6, 2017
Messages
6
Hi Everyone,

Thanks for taking the time to look at my conundrum. I'm having trouble with the following formula:

=IFERROR(If(and((NETWORKDAYS($C2,$D2,0)>5,networkdays($c2,$d2,0)<=10),1,0),0))

I have a date entered in column C2 as: 8/1/2017
I have a date entered in column D2 as: 7/17/2017

This will yield a negative answer for networkdays($C2,$D2,0) which is fine.

The formula in bold above is located in column F2, which yield a 1 if the network days are greater than 5 but less than or equal to 10 and a 0 if it is outside these parameters.

Any help would be greatly appreciated! Thanks!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try:
Code:
=IFERROR(IF(AND(NETWORKDAYS($C2,$D2,0)>5,NETWORKDAYS($C2,$D2,0)<=10),1,0),0)
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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