Excel Formula to find duplicates and return text on 1st duplicate in separate column

Justin_M

New Member
Joined
Feb 3, 2021
Messages
31
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone,

I am attempting to find duplicates (in column B) and return text of 1st duplicate in separate column. The only thing i can think of off the top of my head would be to do the conditional formatting to highlight the duplicates, then sort by color, then update true/false on column D. Might be easier than creating a formula but figured id give this a shot! Any suggestions?

More Info:

Column B has a list of phone numbers associated to customers. Some customers live in the same household and share the same number, so we don't want to call them multiple times.
 
Just so you both know, this was a MAJOR help to my organization. Someone was doing these updates manually and it was taking HOURS and sometimes DAYS! I didn't know about this report until yesterday and we took their processing time down to 1 second. Y'all really made me look good and I wanted to say thank you very much for your input and assistance.
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about
VBA Code:
Sub justinM()
   Dim Ary As Variant, Nary As Variant
   Dim r As Long
  
   With Sheets("Sheet1")
      Ary = .Range("B2", .Range("B" & Rows.Count).End(xlUp)).Value2
   End With
   ReDim Nary(1 To UBound(Ary), 1 To 1)
   With CreateObject("Scripting.dictionary")
      For r = 1 To UBound(Ary)
         Nary(r, 1) = .Exists(Ary(r, 1))
         .item(Ary(r, 1)) = Empty
      Next r
   End With
   Sheets("Sheet1").Range("D2").Resize(UBound(Nary)).Value = Nary
End Sub
Great Solution !
Can you please help me with,
In the Output Result It's showing TRUE and FALSE , So Whenever the Value is Duplicate can we Print "Duplicate Value"?
 
Upvote 0
Please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate may be locked or deleted. You need to stick to your existing thread.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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