If function to exclude weekends and Holidays

Bazabelle

New Member
Joined
Oct 6, 2022
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi,

Not sure how to use this formula from another post; =IF(AND(WORKDAY(C3,0)=WORKDAY(TODAY(),0),E3<>""),E3,"")

Currently I have this one which works perfectly but I want to exclude any Holidays

=IF(WEEKDAY(E4+D6, 2)= 7,E4+D6+1,IF(WEEKDAY(E4+D6,2)= 6,E4+D6+2, E4+D6))

E4 = 16Aug2023
D6 = 6
 
Book1
ABCDEFGH
120/12/2023602/01/2024Holidays
224/11/202330/11/202325/12/2023
326/12/2023
427/12/2023
528/12/2023
629/12/2023
730/12/2023
831/12/2023
901/01/2024
Sheet1
Cell Formulas
RangeFormula
C1:C2C1=WORKDAY(A1+5,$B$1-5,$H$2:$H$9)


or more generic

Book1
ABCDEFGH
120/12/2023602/01/2024Holidays
224/11/202330/11/202325/12/2023
326/12/2023
427/12/2023
528/12/2023
629/12/2023
730/12/2023
831/12/2023
901/01/2024
Sheet1
Cell Formulas
RangeFormula
C1:C2C1=WORKDAY(A1+($B$1-1),$B$1-$B$1+1,$H$2:$H$9)


or
Excel Formula:
=WORKDAY(A1+($B$1-1),1,$H$2:$H$9)
 
Last edited:
Upvote 0

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

Forum statistics

Threads
1,215,214
Messages
6,123,661
Members
449,114
Latest member
aides

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