+ Reply to Thread
Results 1 to 7 of 7

Thread: How to look up a value in a list and return multiple corresponding values?

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    Kolkata, India
    MS-Off Ver
    Office 2007
    Posts
    6

    Post How to look up a value in a list and return multiple corresponding values?

    Here is the source data
    Names in Column A, Scores in Column B
    A 1
    B 3
    A 2
    B 5
    C 8
    C 2
    D 1
    E 8
    A 6

    I need formulas which would return the following result:

    A 1 2 6
    B 3 5
    C 8 2
    D 1
    E 8


    I tried combining vlookup & hlookup, match index array, nested if... so far no results.

    NOTE: each name can have upto 10 scores, names could be hundreds.

    Help please...

  2. #2
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,342

    Re: How to look up a value in a list and return multiple corresponding values?

    Say values A, B, C, D, E are entered manually. so in the cell next to A put this function, copy down then accross

    =IF(COUNTIF($A$2:$A$10,$F4)>=COLUMNS($G3:G$3),SMALL(IF($F4=$A$2:$A$10,$B$2:$B$10,""),COLUMNS($G3:G$3 )),"")

    Array Entered: e.g entered with CTRL+SHIFT+ENTER
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    01-12-2011
    Location
    Kolkata, India
    MS-Off Ver
    Office 2007
    Posts
    6

    Thumbs up Re: How to look up a value in a list and return multiple corresponding values?

    Thank you so much! Worked perfectly!!!

  4. #4
    Registered User
    Join Date
    07-08-2011
    Location
    milan, italy
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to look up a value in a list and return multiple corresponding values?

    Thanks, this file is perfect. However i've an issue. In column B i do not have numbers but word ( see example below) and therefore the formula is not working. Can you help me somehow?? thanks a lot!

    Enrico


    Example
    A apple
    B banana
    ...

  5. #5
    Registered User
    Join Date
    07-08-2011
    Location
    milan, italy
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to look up a value in a list and return multiple corresponding values?


  6. #6
    Registered User
    Join Date
    07-14-2011
    Location
    Updating
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: How to look up a value in a list and return multiple corresponding values?

    Quote Originally Posted by silver.eb View Post
    Thanks, this file is perfect. However i've an issue. In column B i do not have numbers but word ( see example below) and therefore the formula is not working. Can you help me somehow?? thanks a lot!

    Enrico


    Example
    A apple
    B banana
    ...
    Formulas in cell C2 to extract unque values : A, B , C... automatically
    PHP Code: 
    =LOOKUP(REPT("z",255),CHOOSE({1;2},"",INDEX($A$2:$A$10,MATCH(TRUE,INDEX(ISNA(MATCH($A$2:$A$10,$C$1:$C1,0)),0),0)))) 
    If column B you do not have numbers, you enter this Formula in D2 :
    PHP Code: 
    =LOOKUP(REPT("z",255),CHOOSE({1,2},"",INDEX($B$2:$B$10,SMALL(IF($A$2:$A$10=$C2,ROW($A$2:$A$10)-1,""),COLUMN(A:A))))) 
    Entered with CTRL+SHIFT+ENTER
    Copy down then accross
    Plz, See attachment file, thanks!
    Attached Files Attached Files
    Last edited by sunflowers; 11-18-2011 at 08:13 AM.

  7. #7
    Registered User
    Join Date
    11-24-2011
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: How to look up a value in a list and return multiple corresponding values?

    Hi


    I have this spread sheet which I have and I need the tab called "HomePage" be the main page where the user enter the post code in the post code box and search all sheets for the details from all sheets with the sheet title displayed under the 3 tabs

    the field need to be populated are as follow:

    Practice Name
    Address
    Post Code
    Telephone Number
    Clinical System
    Team


    I can attach the file if you require
    Attached Files Attached Files

+ 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