Try this...
Data in the range A2:C4
Enter this array formula** in E2. This will return the count of unique entries.
=SUM(IF(A2:C4<>"",1/COUNTIF(A2:C4,A2:C4)))
Enter this array formula** in F2. This will extract the unique entries. There must be a cell above the first formula cell and this cell must not contain an item from the range.
=IF(ROWS(F$2:F2)>E$2,"",INDEX(A$2:C$4,MIN(IF(A$2:C$4<>"",IF(ISNA(MATCH(A$2:C$4,F$1:F1,0)),ROW(A$2:C$4)-ROW(A$2)+1))),MOD(MIN(IF(A$2:C$4<>"",IF(ISNA(MATCH(A$2:C$4,F$1:F1,0)),(ROW(A$2:C$4)-ROW(A$2)+1)*10^5+(COLUMN(A2:C4)-COLUMN(A2)+1)))),10^5)))
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Here's a small sample file that demonstrates this:
ExtractUniques2dRange.xlsx
Bookmarks