Solved

Excel Conditional Formatting Based On Multiple Cell Values

Posted on 2013-05-25
2
580 Views
Last Modified: 2013-05-26
In an Excel spreadsheet, I want to highlight any cell in the sheet that has the same value as any one of six cells in the first row. i.e. cells A1 through F1.

I will change the values in A1 through F1 daily & need to see if any of the 200 or so other sells in the sheet have the same value.

I thought Conditional Formatting could do it but it won't allow me to target the value of more than one cell, i.e. I can format to say if any of these cells are equal to A1, then highlight the cell, but I cannot say if equal to A1 OR B1 etc..

Any takers? :)
0
Comment
Question by:snooflehammer
2 Comments
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 39197366
The following formula when applied to a range with E4 as the top left corner will format the cell if equal to a value in A1:F1

=COUNTIF($A$1:$F$1, E4)

If have attached an example file for you to look at

Michael
Example.xlsx
0
 

Author Closing Comment

by:snooflehammer
ID: 39197471
Elegant. Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now