Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel 2010 - Conditional Formatting for Duplicate Values Across Worksheets

Posted on 2016-08-26
5
Medium Priority
?
33 Views
Last Modified: 2016-09-14
Hello Experts,

Is there a formula or conditional formatting that can be applied to worksheets in a workbook that will change the font to a different color if the values in any of the cells or columns in one worksheet appear on any other worksheet in the work book? I've attached a simple workbook just in case you can add the formula to the workbook as an example of how it's done.

Thank you
0
Comment
Question by:jsmith08
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Author Comment

by:jsmith08
ID: 41772440
Oops...here's the attachment.
EE-Sample-Workbook.xls
0
 
LVL 23

Expert Comment

by:Ejgil Hedegaard
ID: 41772469
I don't think it is possible to look at entire worksheets without VBA.
For single columns like the sample, conditional formatting and named ranges can do it.
Red means the name is on both sheets City2 and City3, green on City2, and blue on City3.

It is not clear what you mean by "values in any of the cells or columns", so this is for single cell formatting.
EE-Sample-Workbook.xls
0
 

Author Comment

by:jsmith08
ID: 41772480
Thank you.  

I mean if any values in column A on any of the worksheets appear in the same column on any other worksheet, then  the formatting should be applied.
EE-Sample-Workbook-2.xls
0
 
LVL 33

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 2000 total points (awarded by participants)
ID: 41772642
As per your sample data, create three dynamic named ranges like City1, City2 and City3 then on each sheet apply a new rule for conditional formatting for whole col. A using the formula given below and set the format as per your choice.

=AND((COUNTIF(City1,A1)+COUNTIF(City2,A1)+COUNTIF(City3,A1))>1,ROW()<>1)

Open in new window


Please refer to the attached for more details and see if this is something you can work with.

PS. The only constraint here I see is the version you are using. You will have to check if this works for your version also.
EE-Sample-Workbook.xls
0
 
LVL 33

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41797508
Chosen answer takes carer of the original requirement.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

618 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