Thread: Unique values
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Unique values

In say M2, type =A2

In M3, enter

=IF(ISERROR(MATCH(0,COUNTIF(M$2:M2,$A$2:$A$200&"") ,0)),"",
INDEX(IF(ISBLANK($A$2:$A$200),"",$A$2:$A$200),MATC H(0,COUNTIF(M$2:M2,$A$2:$A
$200&""),0)))

which is an array formula, so commit with Ctrl-Shift-Enter. Copy M3 down.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"travis" wrote in message
...
I need help for returning unique values. I can count the unique values

but I
need to show them. For each different ManDocNo, I want to return the

unique
EPACodes. A simplified example below:

ManDocNo EPAUCode EPAPCode EPAD1Code
24155580
24155580 D009
24155580
24155580 U151 D009
AR1599445
AR1599445
AR1599445
AR1599445
AR1599445
AR1599445 D001
AR1599445 U019 D001
AR1599445 D002
AR1599445 P087
AR1599445 P105
AR1599445 U006 D001
AR1599445 U019 D018
AR1599445 U031
AR1599445 U044 D022
AR1599445 U053 D001
AR1599445 U057 D001
AR1599445 U092 D002
AR1599445 U103 D002

Thanks for your help.