You can use the following formula in Excel to check if a given date is a holiday:
=IF(OR(COUNTIF(A2,$D$2:$D$9)), "Holiday", "Not a Holiday")
This particular formula checks if the date in cell A2 is a holiday or not.
Note: This formula assumes that the dates that are considered holidays are listed in the range D2:D9.
The following example shows how to use this formula in practice.
Example: How to Check if Date is a Holiday in Excel
Suppose we have a list of dates in column A and a list of holidays in column D:

Suppose we would like to check if each date in column A is a holiday or not.
We can type the following formula into cell B2 to do so:
=IF(OR(COUNTIF(A2,$D$2:$D$9)), "Holiday", "Not a Holiday")
We can then click and drag this formula down to each remaining cell in column B:

Column B now tells us if each corresponding date in column A is a holiday or not.
Note that we chose to return either “Holiday” or “Not a Holiday” as results from the IF function, but you can choose to return whatever values you would like.
For example, you could instead type the following formula into cell B2:
=IF(OR(COUNTIF(A2,$D$2:$D$9)), "Yes", "No")
We can then click and drag this formula down to each remaining cell in column B:

The formula now returns either “Yes” or “No” to indicate whether or not the corresponding date in column A is a holiday.
Additional Resources
The following tutorials explain how to perform other common operations in Excel:
Excel: Calculate the Number of Months Between Dates
Excel: How to Calculate Sum by Date
Excel: How to Calculate Average by Date
Hi, could you please explain to me how OR function fixes the issue here, if I don’t put Or I get Spill.
When working with dates in Excel, using the `OR` function can help resolve issues like spills, especially when checking if a date matches a list of holidays.
Here’s why the `OR` function helps:
### The Issue Without `OR`
If you compare a single date (e.g., `A1`) against a list of holidays (e.g., `B1:B10`), using a direct comparison like:
“`excel
=A1=B1:B10
“`
Excel performs a **logical comparison** and tries to return an array of `TRUE` or `FALSE` values, one for each comparison. If you’re working in a cell that isn’t set up to handle spilled array results (or you’re not using Excel’s dynamic arrays properly), this will result in a **#SPILL!** error.
### How `OR` Fixes It
The `OR` function combines all the comparisons into a single logical result. For example:
“`excel
=OR(A1=B1:B10)
“`
Here’s what happens:
1. `A1=B1:B10` still evaluates an array of logical values (`TRUE` or `FALSE` for each comparison).
2. `OR` checks if **any of the comparisons** is `TRUE`.
3. Instead of spilling multiple results, it returns a single value:
– `TRUE` if at least one comparison is `TRUE`.
– `FALSE` otherwise.
This avoids the spill issue because Excel doesn’t need to display multiple results.
### Example Use Case
You have a list of holidays in `B1:B10` and want to check if the date in `A1` is a holiday.
Without `OR`:
“`excel
=A1=B1:B10
“`
Returns an array like `{FALSE, TRUE, FALSE, …}`, which may cause a spill error.
With `OR`:
“`excel
=OR(A1=B1:B10)
“`
Returns a single value (`TRUE` if `A1` matches any date in `B1:B10`).
### Why Spills Happen
Spills occur because Excel tries to output multiple results into adjacent cells. If the cells are occupied or if the formula isn’t designed to handle arrays, Excel returns `#SPILL!`.
Using `OR` ensures a single output value, avoiding spill errors and making the formula more efficient for this purpose.
Hi Zach, in an Excel spreadsheet, I have thousands of dates and currently have a formula written as =IF(OR(WEEKDAY(A2)=1,WEEKDAY(A2)=7),”Weekend/Holiday”,”Workday”). Now I would like to nest/include a formula similar to yours to also refer to the separate tab I have that lists multiple years of US major holidays that our organization recognizes and identify any Monday thru Friday dates that are holidays as “Weekend/Holiday” as well. Is this possible? I hope this makes sense, and thanks for any guidance you can provide.
Hi Debbie…We appreciate your contribution to our discussion! What are you currently getting from your implementation?