Duplicate items - formula to identify duplicates

ExcelNovice

Well-known Member
Joined
May 12, 2002
Messages
583
I'm working with a fairly large spreadsheet.
Col O has data from cell O23 to O2500, most of which are duplicates.
I need a way to identify the first duplicate items in Col O, and I need the identifier for the duplicate to be in Col AG.
Example:
Col O23 CD250
Col O24 NT150
Col O25 CD250
Col O26 TG200
Col O27 DW300
Col O28 NT150

I need cell AG23 to indicate that Col O23 is the first duplicate for CD250. Ideally, it would be great if someone could share a formula that when entered in AG23, its returns CD250, indicating that it's the first duplicate of CD250 on the list. The formula result should then show NT150 in AG24, it would leave AG25 blank because it's not a duplicate, shows TG200 for cell AG26, blank for AG27 and blank for AG28 because it's not the first occurrence of the duplicate entry.

Hope above is not totally confusing; any help will be appreciated.

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,802
Messages
6,181,054
Members
453,014
Latest member
Chris258

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