Highlight Column Based on Weekend Day

orkt

New Member
Joined
Jun 2, 2009
Messages
3
I would like to highlight a column (partial actually, say 15 rows) depending on if the 1st Row has a Weekend Date in it.

The first row would be something like:

3/12 -- 3/13 -- 3/14 -- 3/15 etc....
where 3/12 and 3/13 are weekend dates.
those column i would like to ?conditionaly format with a color, maybe 15 rows.

TIA
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Select the range from the dates down.

Goto conditional formatting, select formula is or Use a formula (2010) and enter this formula:

=WEEKDAY(C$1,2)>5

and format as required.

You'll need to change C$1 to suit, for example if your dates are in row 5 and begin in column A you would use A$5.
 
Upvote 0
Yes I understand that, thanks. However I wanted to highlight the column & 15 rows below the one which has the weekend day.

like..

friday saturday sunday monday
data1 data2.... data3.. data4..
data1 data2.... data3.. data4..
data1 data2.... data3.. data4..
data1 data2.... data3.. data4..
data1 data2.... data3.. data4..

etc...

TIA
 
Last edited:
Upvote 0
Select all your data (all the columns you want to conditional format and the 15 rows). Lets say for this example that is C1 to J15

Then select Conditional Formatting from the menu and put in this formula

Formula is =WEEKDAY(C$1,2)>5

Where C$1 is the active cell of your selection.

Excel will automatically adjust the formulas for the other cells as needed
 
Upvote 0
Thanks that worked great.

I used =WEEKDAY(A$1,2)>5, selected the range and applied the fill format I wanted.

I searched hi and low for this thanks for the seemingly simple & Quick fix :)
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,020
Members
448,938
Latest member
Aaliya13

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