View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Return Unique Duplicate Numeric Values across Single Row

Array entered in A12:
=SMALL(IF(COUNTIF(Data,Data)1,Data),1)


Here's a tweak that adds an error trap in case there are no duplicates:

=IF(MAX(COUNTIF(Data,Data))1,MIN(IF(COUNTIF(Data, Data)1,Data)),"")

Biff

"T. Valko" wrote in message
...
Assume you want the results starting in cell A12 and across.

Array entered in A12:

=SMALL(IF(COUNTIF(Data,Data)1,Data),1)

Array entered in B12 then copied across until you get blanks:

=IF(MIN(IF(COUNTIF(Data,Data)1,IF(DataA12,Data)) )=0,"",MIN(IF(COUNTIF(Data,Data)1,IF(DataA12,Dat a))))

Biff

"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:6c938087306a5@uwe...
Hi All,

I have a Named Range called "Data" that spans 8 columns and 7 rows. A
Numeric
Value will appear only once in a row. Each row's Numeric Values are in
ascending order. A duplicate could be in any column.

I would like to Return across a single row unique duplicates (single
instance
of a duplicate value) in ascending order.

Sample Data Layout:

101 102 107 110 145 370 490 501
104 106 130 144 360 430 470 580
125 129 140 150 350 390 460 590
101 102 129 130 149 330 440 578
105 108 120 129 200 280 430 535
100 111 170 175 176 180 420 520
121 189 190 202 229 230 410 521

Expected Results: Unique Duplicate Returned across Single Row
101 102 129 130 430



Thanks,
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1