Solved

Excel Conditional Formatting Based On Multiple Cell Values

Posted on 2013-05-25
2
598 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Automatically report prepared in excel by VBA 5 34
Problem with a moving column in Excel 6 38
Filtering - Visible Rows 21 19
Index Match Formula VBA 6 15
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

856 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