Find Duplicate values with corresponding values.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,784
Hi all,
I am looking for a formula. I have values in column A and corresponding values in column B, I want to find out if the duplicate exists with the two cells. For example, if I have.
62017000
8015064
52017000
8192746
62017000
8192746
52017000
8192747
62017000
8192747
32017000
8214224
32017000
8214224
62017000
8214225
32017000
8214226

<tbody>
</tbody>

The underlined (italic) values are duplicate.

Thanks
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,317
Try something like this

Formula in C1 copied down
=IF(COUNTIFS(A:A,A1,B:B,B1)>1,"Duplicate","")

Hope this helps

M.
 

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,784
Thank you Marcelo,
I was using,
=IF(SUMPRODUCT($A$6:A6=A6)*($B$6:B6=B6)>1,"Duplicate","okay")
That did not work.

Cheers.
 
Last edited:

Forum statistics

Threads
1,081,524
Messages
5,359,269
Members
400,523
Latest member
ExcelNewbie98

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top