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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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