Nested IF statement with Networkdays.Intl calculation

Galena1

Active Member
Joined
Jun 10, 2010
Messages
305
I have a simple 3 condition nested IF statement as follows: =IF(D4="High",E4+1,IF(D4="Med",E4+3,IF(D4="Low",E4+5," "))) where D4 contains a date. How do I get it to return only non-holiday weekday dates? I could create a tab in the workbook containing a list of my country's 12 holidays.

Any help would be greatly appreciated!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,
Have you tried :
Excel Formula:
=WORKDAY(E4,1)
 
Upvote 0
Hi James. Thanks for the reply. What I was looking for was combining my nested 3 condition IF statement with either WORKDAYS or NETWORKDAYS function and to take into account a separate Holidays list. Kinda like:

=IF(D4="High",E4+1,IF(D4="Med",E4+3,IF(D4="Low",E4+5, Networkdays(E4:f4,Holidays!A1:A12))

In other words, the formula in F4 has to exclude Weekend days as well as well as any Holidays as defined in the tab named 'Holidays'. I was using the expression "E4+1", "E4+3", and "E4+5" to calculate a future date in F4, based on the text in D4 (low, med, high)
 
Upvote 0
Try this:
Holiday is in G3, assuming Saturday and Sunday weekend.

mr excel questions 21.xlsm
ABCDEFG
2Holidays
3LevelDateNewDate2023-03-30
4HighWed 2023-03-29Fri 2023-03-31
5MedWed 2023-03-29Tue 2023-04-04
6LowWed 2023-03-29Thu 2023-04-06
Galena1
Cell Formulas
RangeFormula
C4:C6C4=WORKDAY.INTL(B4,IF(A4="High",1,IF(A4="Med",3,5)),1,$G$3)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,726
Members
449,465
Latest member
TAKLAM

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