View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rlauver rlauver is offline
external usenet poster
 
Posts: 2
Default Returning the cell reference when you find a value in an array

Can I send you the Excel file to show to help explain what I need?

Thanks, Ron

"T. Valko" wrote:

To list the unique duplicates:

rng = A$1:A$20

Enter this array formula** in C1:

=INDEX(rng,SMALL(IF(COUNTIF(rng,rng)1,ROW(rng)-MIN(ROW(rng))+1),1))

Enter this array formula** in C2 and copy down until you get errors meaning
all unique dupes have been extracted:

=INDEX(rng,SMALL(IF((COUNTIF(rng,rng)1)*(rng<C$1 :C1),ROW(rng)-MIN(ROW(rng))+1),ROWS($1:1)))

Post back if you want an error trap.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Biff

"rlauver" wrote in message
...
If there are duplicates then it gets really complicated!!!

Is there a way to list all the duplicates in a column?

Thanks

"T. Valko" wrote:

Try this array** formula:

E1 = Sue

=ADDRESS(MAX((A1:C3=E1)*ROW(A1:C3)),MAX((A1:C3=E1) *COLUMN(A1:C3)),4)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

If there are duplicates then it gets really complicated!!!

Biff