IF/ OR Formula not working?

pete4monc

Board Regular
Joined
Jan 12, 2014
Messages
85
Office Version
  1. 365
Platform
  1. Windows
Hi all
I have tried different versions of the excel formula and can not seem to get the right result.
Column H = Date in, Column I = Date completed,
If there is no completed date Column I, Column L = Days that the department has had the file less the weekends and holidays.

=IF(OR(H5="",I5=""),NETWORKDAYS(H5,TODAY(),'Holiday List'!$B$2:$B$23),"")

Only first date entered= Column L shows number of days = good
Both dates entered= Column L shows blank = good
No dates entered = Column L shows 31847 = bad.

How do I get the cell in column L to show nothing if there is no dates entered into either Column H or Column I?

Thank you for any advice.
 

Attachments

  • Capture4.PNG
    Capture4.PNG
    4.8 KB · Views: 8

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try:

Excel Formula:
=IF(COUNT(H5:I5)=1,NETWORKDAYS(H5,TODAY(),'Holiday List'!$B$2:$B$23),"")
 
Upvote 0
Solution
Try:

Excel Formula:
=IF(COUNT(H5:I5)=1,NETWORKDAYS(H5,TODAY(),'Holiday List'!$B$2:$B$23),"")
Hi Eric

Thanks for your help, I'm still new to excel and formulas and I didn't even consider "count" version.
It worked a treat, thanks for your help.
 
Upvote 0
Excel always has more to learn! Glad I could help and thanks for the update. ?
 
Upvote 0

Forum statistics

Threads
1,215,421
Messages
6,124,806
Members
449,191
Latest member
rscraig11

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