Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mac Mac is offline
external usenet poster
 
Posts: 213
Default Extracting duplicates with row ref's to a list

I have a column of some 10.000 values with duplicates highlighted; now, I'd
like ot have all of these duplicates ( not just a list of distinct values)
stored to list with a row reference of each (in a neighbouring column, for
example). Does anyone have an idea?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Extracting duplicates with row ref's to a list

Assume you mean "duplicate" as in the 2nd occurence onwards of an item

Source data assumed running in A2 down

In B2:
=IF(A2="","",IF(COUNTIF(A$2:A2,A2)1,ROW(),""))
Leave B1 blank

In C2:
=IF(ROWS($1:1)COUNT($B:$B),"",INDEX(A:A,SMALL($B: $B,ROWS($1:1))))
Copy C2 to D2. Select B2:D2, copy down to cover the max expected extent of
source data in col A. Hide away col B. Col C returns the duplicates from col
A, col D returns the corresponding row numbers for the duplicates.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Mac" wrote:
I have a column of some 10.000 values with duplicates highlighted; now, I'd
like ot have all of these duplicates ( not just a list of distinct values)
stored to list with a row reference of each (in a neighbouring column, for
example). Does anyone have an idea?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mac Mac is offline
external usenet poster
 
Posts: 213
Default Extracting duplicates with row ref's to a list

This does not seem to work properly...can you send an example sheet via
email, please?

"Max" wrote:

Assume you mean "duplicate" as in the 2nd occurence onwards of an item

Source data assumed running in A2 down

In B2:
=IF(A2="","",IF(COUNTIF(A$2:A2,A2)1,ROW(),""))
Leave B1 blank

In C2:
=IF(ROWS($1:1)COUNT($B:$B),"",INDEX(A:A,SMALL($B: $B,ROWS($1:1))))
Copy C2 to D2. Select B2:D2, copy down to cover the max expected extent of
source data in col A. Hide away col B. Col C returns the duplicates from col
A, col D returns the corresponding row numbers for the duplicates.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Mac" wrote:
I have a column of some 10.000 values with duplicates highlighted; now, I'd
like ot have all of these duplicates ( not just a list of distinct values)
stored to list with a row reference of each (in a neighbouring column, for
example). Does anyone have an idea?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Extracting duplicates with row ref's to a list

"Mac" wrote:
This does not seem to work properly...
can you send an example sheet via email, please?


Here's a link to an illustrative sample:
http://www.flypicture.com/download/NTA5MzY=
Listing duplicates n their row numbers.xls

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mac Mac is offline
external usenet poster
 
Posts: 213
Default Extracting duplicates with row ref's to a list

Now I've got the hang of that!:-)Thank you very much,Max!

"Max" wrote:

"Mac" wrote:
This does not seem to work properly...
can you send an example sheet via email, please?


Here's a link to an illustrative sample:
http://www.flypicture.com/download/NTA5MzY=
Listing duplicates n their row numbers.xls

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Extracting duplicates with row ref's to a list

welcome, glad you got it up.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Mac" wrote in message
...
Now I've got the hang of that!:-)

Thank you very much,Max!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting from a List Mike Moore Excel Discussion (Misc queries) 2 January 19th 07 08:37 PM
Array Formulas - Unique List from List with Duplicates Johnny Meredith Excel Discussion (Misc queries) 7 October 27th 06 09:26 PM
removing duplicates from a list aleccamp Excel Discussion (Misc queries) 4 November 20th 05 03:22 AM
How to remove duplicates from a list and copy new list to new colu Chance Excel Worksheet Functions 2 April 23rd 05 05:21 AM
How do I find duplicates in a list JimNC Excel Discussion (Misc queries) 1 February 6th 05 08:40 PM


All times are GMT +1. The time now is 02:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"