pick 1 row from duplicates

RompStar

Well-known Member
Joined
Mar 25, 2005
Messages
1,200
I have this formula in one of my columns:

=COUNTIF(K$2:K$21140,K2)

it looks for a duplicate in column K...

Anytime there is a duplicate of > 1, I want at least at this stage ID it in a helper column.

So if a row repeats 4 times, I need a random way to pick just one of those rows, or atleast the first row, please help with formula, thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
well, this works, it picks the last row of the dup set, would be nice if it worked randomly, but maybe that is too difficult ?

=IF(AND(L2>1,L2=L3),"delete","keep")
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

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