Display text if date is on weekend AND holiday

meganisagee

New Member
Joined
Nov 30, 2022
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone,

I currently have a formula which identifies when an application date is on a weekend and when it is on a holiday. When it's a weekend, it says "Application date is a weekend." When it's a holiday, it says "Application date is a holiday." However, if the date happens to be a weekend AND a holiday (such as 1/1/2023), both conditions are met and it displays "Note: Application date is a weekend.Note: Application date is a holiday."

I'd like to combine the formulas so if the application is on a weekend, holiday, or happens to be on both, the text will display "Note: Application date is a weekend/holiday."

Here's what I have (note the beginning is if the field is blank, it doesn't show anything):
1669943149508.png


Thanks in advance.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try

Excel Formula:
=IF(AND(D2<>"",OR(WEEKDAY(D2,2)>5,COUNTIF(Holidays!$C$2:$BJ$14,D2))),"Note: Application date is a weekend/holiday","")
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,330
Messages
6,124,310
Members
449,152
Latest member
PressEscape

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