Using Networkdays function with named cell ranges

stubrave

New Member
Joined
Jun 22, 2016
Messages
1
Hi all,

I have designed quite a complicated nested if statement that carries out different calculations depending on whether certain fields are blank or not. I have 30 columns and I have renamed each with reference to the time point I am referring to (e.g. feas1 feas2 etc - (FEAS referring to 'Feasibility' in case you were wondering).

I would like to refer to the range name rather than the individual cell reference within the If statement, but when I do so I am met with a #VALUE error message.

My formula looks like this. It works when it's simply x-y, but not when the calculation is using networkdays for some reason. I can only get Networkdays to work when referencing individual cells (e.g. a1, b2) rather than range names (e.g. feas1, feas2).

The full if formula is as follows, in case this is useful:

=IF(AND(ISBLANK(feas1),ISBLANK(feas2))," ",IF(AND(NOT(ISBLANK(feas1)),NOT(ISBLANK(feas2))),feas2-feas1,IF(AND(ISBLANK(feas1),NOT(ISBLANK(feas2))),"Enter start point",IF(AND(NOT(ISBLANK(feas1)),ISBLANK(feas2)),TODAY()-feas1," "))))

Any advice would be appreciated.

Thank you.

Stuart
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,506
Messages
6,125,189
Members
449,213
Latest member
Kirbito

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