Solved

Excel 2010 - Conditional Formatting for Duplicate Values Across Worksheets

Posted on 2016-08-26
5
18 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
  • 2
  • 2
5 Comments
 

Author Comment

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

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 29

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 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 29

Expert Comment

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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 will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

832 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