Finding Duplicate In A Column and Match the Values

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have duplicated in a column, how do I match the two values that duplicate.

Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
What do you mean by "match"? Exactly what do you want to happen?
It may help if you can post a sample of what your data looks like, along with your expected results.
 
Upvote 0
Thanks Joe,

Here is a sample,
[TABLE="width: 177"]
<tbody>[TR]
[TD]00920170080210373[/TD]
[/TR]
[TR]
[TD]00920170080210730[/TD]
[/TR]
[TR]
[TD]00920170080210731[/TD]
[/TR]
[TR]
[TD]01020170080210373[/TD]
[/TR]
[TR]
[TD]01020170080210730[/TD]
[/TR]
[TR]
[TD]01020170080210731[/TD]
[/TR]
[TR]
[TD]01120170080210373[/TD]
[/TR]
[TR]
[TD]01120170080210730[/TD]
[/TR]
[TR]
[TD]01120170080210731[/TD]
[/TR]
[TR]
[TD]01220170080210373[/TD]
[/TR]
[TR]
[TD]01220170080210730[/TD]
[/TR]
[TR]
[TD]01220170080210731[/TD]
[/TR]
[TR]
[TD]00120180080210373[/TD]
[/TR]
[TR]
[TD="align: left"]
00120180080210730

<tbody>
</tbody>
[/TD]
[/TR]
[TR]
[TD]00120180080210731[/TD]
[/TR]
[TR]
[TD]00220180080210373[/TD]
[/TR]
[TR]
[TD]00220180080210730[/TD]
[/TR]
[TR]
[TD]00220180080210731

There are duplicates but I want to find out where is the duplicate value?[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
Upvote 0
Since it appears that you have multiple duplicate values, how exactly do you want it to show you the duplicates?
We could use Conditional Formatting to highlight all the values that are duplicated, or even create a formula that says "Duplicate", but that won't distinguish one duplicate from another.
So based on the example you show above, please show us exactly how you want it to indicate the duplicate.
Do you want it to return the row number or something of the next duplicate or something? What if a particular value shows up more than once?
 
Upvote 0
I got duplicates as you said, by formula and by conditional formatting. Now I know that there are duplicates, how do I know what two are matching? I do not know how to find out. May be it will be match 1,1 ; 2,2. I do not think it works like that. I guess I will sort the table to find out the duplicate values.

Thanks Joe, I appreciate your time.
 
Upvote 0
how do I know what two are matching?
I was trying to find out from you how exactly you want that displayed. For example, do you want different duplicates different colors? Or do you want the row number of its match returned, etc?
It could get a little complicated.

If you are have the ability to sort it, so all duplicates are in order, I think that would be the easiest way.
 
Upvote 0
Thank you Joe,
I am getting all sorts of problem in this small worksheet, I am trying to match two columns, but some number such as [TABLE="width: 144"]
<tbody>[TR]
[TD="align: right"]01020170080210370[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]

Should be [TABLE="width: 144"]
<tbody>[TR]
[TD="align: right"]01020170080210371
and not "0", but every time I change it manually, I goes back to 0 when I press enter.
I don't know what is going on. the files are downloaded from Oracle and another software called EnergyLink. [/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
Upvote 0
Are they coming in as numbers? I believe that Excel can only store 15 significant digits in a number.
You will want to bring it into Excel as text, and not numbers.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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