Highlight column conditional formatting

chrissmarlow

Board Regular
Joined
Jun 3, 2010
Messages
59
Hi,

I have been using the formula =INDIRECT("A"&ROW())="sun" in conditional formatting for a while now and have had no issues with it. If the word "sun" appears in column A, the whole of that row will be formatted as requested. Great! But now im trying to switch it around to work with columns and im struggling!

I want a formula that will highlight cells below if the top one's value is "Sun". Is there any easy way to do this?

My current spreadsheet is:

Cell B13 is the header which may or may not contain the word "sun", if it does contain "sun" then I want cells B14:B26 to highlight in grey.

Any help much appreciated!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try:

=B$13="sun"

Not sure why you are using indirect for the row, surely:

=$A1="sun" would suffice?

Hope that helps
 
Upvote 0
Try:

=B$13="sun"

Not sure why you are using indirect for the row, surely:

=$A1="sun" would suffice?

Hope that helps

Haha, so simple! The reason I was using indirect is because someone gave me that formula ages ago and I just assumed it was needed, thanks for the correction!

One other thing, how easily could I make the formula work if cell B13 contained "Sat" OR "Sun" ?

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

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