Conditional format column based on header

grimmreaper

New Member
Joined
Mar 12, 2013
Messages
7
Good day


Basically I want to fill the color of the column if the heading is Saturday or sunday. That is step one.


Step two is I want to have the average of each day.

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]mon[/TD]
[TD]tues[/TD]
[TD]wed[/TD]
[TD]thurs[/TD]
[TD]fri[/TD]
[TD]sat[/TD]
[TD]sun[/TD]
[TD]mon[/TD]
[TD]average[/TD]
[TD]monday[/TD]
[TD]tues[/TD]
[TD]wed[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1 July[/TD]
[TD]2 July[/TD]
[TD]3 July[/TD]
[TD]4 July[/TD]
[TD]5 july[/TD]
[TD]6 july[/TD]
[TD]7 july[/TD]
[TD]8 july[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0am til 1am[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]0[/TD]
[TD]9[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1am until 2am[/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]6[/TD]
[TD]1[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Where it says Mon 1 July is that in one cell? How do we know which year that is?
 
Upvote 0
Ah ive read it again. Try this conditional formatting formula:

=OR(B$1="sat",B$1="sun")

Apply it to =$B:$I
 
Upvote 0

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