Solved

Excel 2010 - Conditional Formatting for Duplicate Values Across Worksheets

Posted on 2016-08-26
5
12 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 28

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 28

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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,…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
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…

746 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

10 Experts available now in Live!

Get 1:1 Help Now