If blank cel then dont calc Networdays - Formula Not working

mattbarb

Board Regular
Joined
Mar 22, 2018
Messages
54
Office Version
  1. 365
Platform
  1. MacOS
Hi,

Any ideas why this simple formula wont work:

Code:
=IF(COUNTBLANK(I10:J10),"",NETWORKDAYS(I10:J10))


?

Many thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Because that isnt the syntax for networkdays. It requires at least a start date and an end date.
 
Upvote 0
Hi, start/end date are in the cells. Syntax is correct i think, as per the below.

Code:
[COLOR=#2C2C2D][FONT=inherit]=NETWORKDAYS (start_date, end_date, [holidays])[/FONT][/COLOR][COLOR=#2C2C2D][FONT=&quot]



[/FONT][/COLOR]
[COLOR=#2C2C2D][FONT=&quot][/FONT][/COLOR]
 
Upvote 0
NETWORKDAYS requires a start date and end date separated by a comma.
You have a range and there's no comma in NETWORKDAYS in your formula.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,237
Members
448,555
Latest member
RobertJones1986

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