Nested If/Or Formula

Domroy

Board Regular
Joined
Mar 8, 2018
Messages
114
Quickie help, please...

I have a formula that calculates work days from two dates. The dates are in F and G. I've discovered that there are instances in the data where one cell has been left blank. I built a formula for if G is blank, then subtract F from itself (so it's a wash), and give me work days. Formula is here:

=IF(ISBLANK(G2),NETWORKDAYS(F2,F2,$AN$2:$AN$19),NETWORKDAYS(F2,G2,$AN$2:$AN$19))

My holidays are obviously in AN2:AN19.

But now I need to add that if F2 is blank, use G2 for both dates so it's a wash. I know it's an or formula, but I'm missing something in there. Help?

I need to look to see if EITHER F or G is blank, and then use the non-blank cell both times in the calculation. Make sense?

Thanks!

Judi
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I did it. I used "IFS" - but thank you for what I know would have been an onslaught of excellent answers!
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

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