+ Reply to Thread
Results 1 to 9 of 9

Return Multiple Text Reslts Sorted Based Unique Values in another Column

  1. #1
    Registered User
    Join Date
    07-18-2006
    Posts
    24

    Return Multiple Text Reslts Sorted Based Unique Values in another Column

    I attach the test workbook. Please look at column E. That's results I'm looking for.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Return Multiple Text Reslts Sorted Based Unique Values in another Column

    Put this array* formula in E2:

    =IFERROR(INDEX($A$2:$A$15&$B$2:$B$15,MATCH(0,COUNTIF($E$1:E1,$A$2:$A$15&$B$2:$B$15),0)),"")

    and copy down until you get blanks.

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), instead of the usual <Enter>.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-18-2006
    Posts
    24

    Re: Return Multiple Text Reslts Sorted Based Unique Values in another Column

    Hi Pete,

    Thank you for taking a look. I probably did not explain what I'm after.

    I would like the formula to look in Col B and find the unique values and then in the corresponding cell in column A then display those results in Alphabetical order.

    Look at the below...

    In cell E2 Desired Results.
    Copier
    Copier
    Copier
    Printer
    Printer
    Printer
    Printer
    Last edited by Fin Fang Foom; 12-09-2015 at 10:18 PM.

  4. #4
    Registered User
    Join Date
    07-18-2006
    Posts
    24

    Re: Return Multiple Text Reslts Sorted Based Unique Values in another Column

    Please let me know if I'm not explaining it correctly.
    Last edited by Fin Fang Foom; 12-09-2015 at 10:18 PM.

  5. #5
    Registered User
    Join Date
    07-18-2006
    Posts
    24

    Re: Return Multiple Text Reslts Sorted Based Unique Values in another Column

    Please look at this workbook.

    I used this formula in cell E2: It almost works.

    =INDEX(A$2:A$15,MATCH(SMALL(IF(A$2:A$15<>"",IF(MATCH(B$2:B$15,IF($A$2:$A$15<>"",B$2:B$15),0)=ROW(A$2:A$15)-ROW($B$2)+1,MMULT((A$2:A$15>TRANSPOSE(A$2:A$15))+0,ROW(A$2:A$15)^0))),ROWS(E$2:E2)),MMULT((A$2:A$15>TRANSPOSE(A$2:A$15))+0,ROW(A$2:A$15)^0),0))

    But the formula doesn't give me the desired results. In cell F2 is what I'm after.
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Return Multiple Text Reslts Sorted Based Unique Values in another Column

    I think it's ok, because you have six unique serials not seven, so you have six EQ as result.
    but maybe I'm wrong

  7. #7
    Registered User
    Join Date
    07-18-2006
    Posts
    24
    Quote Originally Posted by sandy666 View Post
    I think it's ok, because you have six unique serials not seven, so you have six EQ as result.
    but maybe I'm wrong
    No it's actually 7. I colored the cells in colum A & B to show the results.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Return Multiple Text Reslts Sorted Based Unique Values in another Column

    Quote Originally Posted by Fin Fang Foom View Post

    I would like the formula to look in Col B and find the unique values and then in the corresponding cell in column A then display those results in Alphabetical order.
    with your second example, in Col B you have SIX unique values, (B3 = B12 so they aren't unique)
    check it by Remove Duplicates
    Last edited by sandy666; 12-09-2015 at 11:53 PM.

  9. #9
    Registered User
    Join Date
    07-18-2006
    Posts
    24

    Re: Return Multiple Text Reslts Sorted Based Unique Values in another Column

    I was able to figure it out. Here's the working formula.


    Input formula in cell F2 and copy down...


    =INDEX(A$2:A$15,MATCH(SMALL(IF(A$2:A$15<>"",IF(MATCH(A$2:A$15&B$2:B$15,IF($A$2:$A$15<>"",A$2:A$15&B$2:B$15),0)=ROW(A$2:A$15)-ROW($B$2)+1,MMULT((A$2:A$15>TRANSPOSE(A$2:A$15))+0,ROW(A$2:A$15)^0))),ROWS(F$2:F2)),MMULT((A$2:A$15>TRANSPOSE(A$2:A$15))+0,ROW(A$2:A$15)^0),0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 07-24-2015, 11:40 PM
  2. [SOLVED] Summerize unique values from multiple columns / Sorted alphabetically
    By Lacaycer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-01-2014, 02:40 PM
  3. [SOLVED] Count unique text values within a range based on another column
    By Sebastes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-14-2014, 01:38 PM
  4. Return number of unique values based on values in other column
    By Medir in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2013, 11:17 AM
  5. [SOLVED] Return unique values based on another column's value
    By bd528 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-26-2013, 04:02 AM
  6. Select multiple criteria based on check box selection and return all unique values.
    By TommyToe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2013, 09:14 AM
  7. Find unique value in column and return multiple values
    By DWolf75 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2011, 08:32 PM

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