Results 1 to 7 of 7

Making a list of unique items in a column

Threaded View

  1. #1
    Registered User
    Join Date
    12-31-2008
    Location
    Alaska, (not Anchorage)
    MS-Off Ver
    Excel 2010, 2016, and 365
    Posts
    78

    Making a list of unique items in a column

    Arrgh-
    I've been using the following snippet to create a list of unique values in a column. It works great as long as the list of unique values and the column being parsed are on the same table. I'm having the darndeest time doing this where the list is on one table in a workbook and the column of mixed values in another table in the same workbook. Here's the formula where both columns are on the same page:

    {=IF(ISNA(OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B1),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)),"",OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B1),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1))}

    The above goes in the second cell down (B2) where B1 would be the first value in the mixed column, (eg B1=A1)
    ...and here's the one I've been putzing with between pages:

    =IF(ISNA(OFFSET(data!D2:D100,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE(data!D2:D100)=A$3:A3),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)),"",OFFSET(data!D2:D100,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE(data!D2:D100)=A$3:A3),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1))

    ...where "data" is the name of the table with the mixed column.
    Last edited by portsample; 06-30-2011 at 07:44 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1