?
Solved

Excel 2010 - Conditional Formatting for Duplicate Values Across Worksheets

Posted on 2016-08-26
5
Medium Priority
?
28 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 32

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 32

Expert Comment

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
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…

770 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