how to highlight holidays and weekend by conditional format in excel

vinayvanam

New Member
Joined
Aug 15, 2014
Messages
19
how to highlight Holidays & Week ends by conditional format
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Date[/TD]
[TD="align: center"]Holidays[/TD]
[TD]Week ends[/TD]
[/TR]
[TR]
[TD]08/01/2014[/TD]
[TD]08/05/2014[/TD]
[TD]08/02/2014[/TD]
[/TR]
[TR]
[TD]08/02/2014[/TD]
[TD]08/15/2014[/TD]
[TD]08/03/2014[/TD]
[/TR]
[TR]
[TD]08/03/2014[/TD]
[TD]08/29/2014[/TD]
[TD]08/09/2014[/TD]
[/TR]
[TR]
[TD]08/04/2014[/TD]
[TD][/TD]
[TD]08/10/2014[/TD]
[/TR]
[TR]
[TD]08/05/2014[/TD]
[TD][/TD]
[TD]08/16/2014[/TD]
[/TR]
[TR]
[TD]08/06/2014[/TD]
[TD][/TD]
[TD]08/17/2014[/TD]
[/TR]
[TR]
[TD]08/07/2014[/TD]
[TD][/TD]
[TD]08/23/2014[/TD]
[/TR]
[TR]
[TD]08/08/2014[/TD]
[TD][/TD]
[TD]08/24/2014[/TD]
[/TR]
[TR]
[TD]08/09/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/10/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/11/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/12/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/13/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8/14/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/15/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/16/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/17/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/18/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/19/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/20/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/21/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/22/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/23/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/24/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/25/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/26/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/27/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/28/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/29/2014[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Select A1

Conditional Formatting
New Rule
Use a formula to determine...

You need two rules for each cell in column A

=NOT(ISNA(MATCH(A1,B$1:B$3,0)))
format as required for Holidays

=NOT(ISNA(MATCH(A1,C$1:C$8,0)))
format as required for week ends

Use Format painter to copy to other cells

Update: For weekends you can use the WEEKDAY formula to determine Sat/Sun
 
Upvote 0

Forum statistics

Threads
1,224,899
Messages
6,181,627
Members
453,058
Latest member
rmd0725

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