Highlight column using conditional formatting

canisdibellum

New Member
Joined
Mar 7, 2018
Messages
8
little bit of an odd challenge, well it is for me anyways....can't seem to crack it....

Using conditional formatting I want to set up a spreadsheet so that an entire column will highlight if it contains a value I'm looking for...for example if the value I want is in A37 I want from A1 through A70 to turn green

OR

if a value shows up in a column, highlight the first cell in the column...for example if value is at A37 I want A1 to turn green

Cell A37 used in the 2 examples is arbitrary I want any cell in the column to activate the conditional formatting

yes I know it's odd and probably difficult to come up with a use, but is there a way to do it?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Welcome to the Board!

Where is the "value you are looking for" stored?
That is, what exactly are you comparing A37 to (where is this "value you want" located)?
 
Upvote 0
And thank you for the welcome :) I've been lurking for years but finally had a question that I don't think anyone else has asked.
 
Upvote 0
For purposes of example we'll say B2
Then, you can highlight the whole column, and then use this Conditional Formatting formula:
=$B$2=$A$37
and choose your highlighting color.

The key here is to use those absolute range references ($) to lock those ranges down so that every cell in that column looks at those exact cells.
 
Last edited:
Upvote 0
Then use the Formula:
Code:
=COUNTIF($A$1:$A$70,$B$2)>0
 
Upvote 0
You are welcome!
Glad I was able to help.:)
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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