Formula to List Rows for Duplicate Cells in a Column

pbornemeier

Well-known Member
Joined
May 24, 2005
Messages
3,915
For a given column, this helper-column formula will indicate if the text in an entire cell has not appeared previously with "First". If cell text has appeared before, display the row where it first appeared:

Rich (BB code):
=IF(ROW(F3)<>MATCH(F3,F:F,0),MATCH(F3,F:F,0),"First")
 
Example:
Row Data Helper
1   A    First
2   B    First
3   C    First
4   A    1
5   C    3

Is there a formula that would show each row where duplicate text appears in the helper column?
Rich (BB code):
Example:
Row Data Helper 
1   A    1,4
2   B    2
3   C    3,5
4   A    1,4
5   C    3,5
The real-life data runs about 1500 rows with no more than 20 duplicates.

Organization involved wants to avoid the various VBA solutions.
 
This works for the 5 rows shown, but it would be useless for a 1500 row list:
Code:
=SUBSTITUTE(INDEX((--($A$2:$A$6=$A2)*ROW($A$2:$A$6)),1)&","&INDEX((--($A$2:$A$6=$A2)*ROW($A$2:$A$6)),2)&","&INDEX((--($A$2:$A$6=$A2)*ROW($A$2:$A$6)),3)&","&INDEX((--($A$2:$A$6=$A2)*ROW($A$2:$A$6)),4)&","&INDEX((--($A$2:$A$6=$A2)*ROW($A$2:$A$6)),5)&",","0,","")

Yes, i still think you'll have to use VBA (UDF for concatenate)

M.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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