+ Reply to Thread
Results 1 to 5 of 5

Thread: Return Multiple Unique Values for Horiontal Table

  1. #1
    Registered User
    Join Date
    01-15-2008
    Posts
    9

    Unhappy Return Multiple Unique Values for Horiontal Table

    Hello,

    I am a little stumped and could use some helpful expertise.

    I am trying to create a table that looks up "Customer #" from a "DATA" sheet and returns any "Username" associated with that "Customer #."

    The returned results need to be in a horizontal layout so that they can be quickly and easily imported into a different program.

    I have attached a sample of what I am looking to do. Basically I want the DATA in the DATA worksheet to be summarized as shown in the SUMMARY tab.

    I am using Microsoft Excel 2010.
    Attached Files Attached Files

  2. #2
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247

    Re: Return Multiple Unique Values for Horiontal Table

    Try this array formula

    =IF(ISERROR(SMALL(IF(DATA!$A$2:$A$11=SUMMARY!$A2,ROW(DATA!$A$2:$A$11)),COLUMN(A1))),"",
    INDEX(DATA!$B$2:$B$11,SMALL(IF(DATA!$A$2:$A$11=SUMMARY!$A2,ROW(DATA!$A$2:$A$11)),COLUMN(A1))))
    Last edited by Bob Phillips; 01-03-2012 at 04:31 PM.

  3. #3
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Return Multiple Unique Values for Horiontal Table

    B2, copy across & down

    =IFERROR(INDEX(DATA!$B:$B,SMALL(IF(DATA!$A$2:$A$25=$A2,ROW(DATA!$A$2:$A$25)),COLUMNS($B2:B2))),"")

    If you need only unique

    =IFERROR(INDEX(DATA!$B$2:$B$25,MATCH(1,IF(DATA!$A$2:$A$25=$A2,IF(ISNA(MATCH(DATA!$B$2:$B$25,$A2:A2,0 )),1)),0)),"")

    Both are Confirmed with CTRL+SHIFT+ENTER
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  4. #4
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    372

    Re: Return Multiple Unique Values for Horiontal Table

    One more approach, see attachment.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-15-2008
    Posts
    9

    Re: Return Multiple Unique Values for Horiontal Table

    Thanks! I ended up using the formula approach in the Summary.xls file WHER uploaded. I would have used the Macro, but my knowledge of editing and working with Macros is rather limited.

    Thanks again everyone!

+ Reply to Thread

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.2.0