Highlighting a duplication

casualbrowser

New Member
Joined
Apr 1, 2008
Messages
32
Hi

I was wondering if someone can tell me this is doable... I am looking for a kind of formatting that highlights a duplication.

For example, if i was to type 'Lemons' in cell C3 next, it would highlight the cell (to indicate a duplication) and ALSO the cell that has the original entry in..... this would also need to work in multiple instances.... so in the future, there could have Table Z... and lemons might have 20 entries, all of which would be highlighted.

1708962584438.png


Any help greatly appreciated.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
What version of excel are you using - would be worth updating your profile to show version as solutions will be dependant on what version you have and therefore what functions available

you could use a countif()
but your example shows table C in column C
you then say
this would also need to work in multiple instances.... so in the future, there could have Table Z. and lemons might have 20 entries
so do you just want to highlight any duplicate

so not sure at what point to highlight

But if you select the cells likely to be filled - then it will highlight as soon as there is a duplicate
BUT will highlight all duplicates not just the cell being entered
Not sure how to do that , may need VBA

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A3:Z100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=countif($A$3:$Z$100, A3)>1

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

Book16
ABCDEFG
1
2
3orangesstrawberrieslemons
4lemonssausages
5custardsoda
6water
7
8
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:K17Expression=COUNTIF($A$3:$Z$100,A3)>1textNO
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top