Auto Calculate weekday, weekend, and Holiday formula needed

trankim

Board Regular
Joined
Nov 14, 2009
Messages
192
Is there a formula that I can add to either my existing formula or create a new one that will return if that date was a fixed holiday?

Here's what I used to create whether that date was a weekend or a M - F, but I would also like for it recognize if it's a holiday.

IF(OR(WEEKDAY(A1)=1,WEEKDAY(A1)=7),"Weekend","M-F")

Thank you so much!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Is there a formula that I can add to either my existing formula or create a new one that will return if that date was a fixed holiday?

Here's what I used to create whether that date was a weekend or a M - F, but I would also like for it recognize if it's a holiday.

IF(OR(WEEKDAY(A1)=1,WEEKDAY(A1)=7),"Weekend","M-F")

Thank you so much!
You can try something like this.

Assuming you have a list of holiday dates in B1:B10.

A1 = some date

=IF(COUNTIF(B1:B10,A1),"Holiday",IF(WEEKDAY(A1,2)<6,"Weekday","Weekend"))
 
Upvote 0
I was wondering if there was a way that we can write a formula that does not need to refer to a list of holidays....is there a "holiday" formula that knows the fixed dates that are like christmas, new years, thanksgiving, labor day, etc and just automatically calculates that as a holiday? Just curious if this is possible

thanks!
 
Upvote 0
I was wondering if there was a way that we can write a formula that does not need to refer to a list of holidays....is there a "holiday" formula that knows the fixed dates that are like christmas, new years, thanksgiving, labor day, etc and just automatically calculates that as a holiday? Just curious if this is possible

thanks!
Excel doesn't know a date is a holiday unless you tell it so.

You can put the holiday dates directly into the formula instead of listing them in a range of cells but if you have many then the formula will be really long.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,629
Members
452,933
Latest member
patv

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