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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try:
Code:
=IFERROR(IF(AND(NETWORKDAYS($C2,$D2,0)>5,NETWORKDAYS($C2,$D2,0)<=10),1,0),0)
 
Upvote 0

Forum statistics

Threads
1,215,647
Messages
6,126,006
Members
449,280
Latest member
Miahr

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