+ Reply to Thread
Results 1 to 4 of 4

Looking up multiple values based on a single criterion

Hybrid View

wmjenner Looking up multiple values... 12-31-2013, 08:29 PM
Pete_UK Re: Looking up multiple... 12-31-2013, 08:55 PM
wmjenner Re: Looking up multiple... 12-31-2013, 09:08 PM
Pete_UK Re: Looking up multiple... 12-31-2013, 09:38 PM
  1. #1
    Registered User
    Join Date
    01-22-2004
    Location
    Visalia, CA / USA
    MS-Off Ver
    2016
    Posts
    78

    Looking up multiple values based on a single criterion

    Hello,

    I am trying to create a formula that will pull ALL of the values from a table into another table according to a single criterion.

    A sample is enclosed. I would like to match the values in Col. G with those in Col. B and, if they match, return the values (stock symbols) from Col. D and put them in Col. H, I , J, K and L. (I am assuming there would not be more than five stock symbols in a given sector (the "sectors" are coded in Col. B and the corresponding sector name is shown in Col. C)).

    What I would like to end up with is the table in Cols. G-L populated with the stock symbols which I've entered manually just to illustrate what I'm trying to accomplish. I've tried to dredge up all the index, match, and lookup formulas that I USED to know eons ago, but I'm getting nowhere.

    So if you experts out there can help me out, I would be most appreciative.

    Many thanks in advance.
    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
    25,411

    Re: Looking up multiple values based on a single criterion

    Put this formula in F3:

    =IF(B3="","-",B3&"_"&COUNTIF(B$3:B3,B3))

    and copy it down beyond your data in order to cope with future expansion - the hyphens will indicate how far you have copied it.

    Then you can put this formula in H3:

    =IFERROR(INDEX($A:$A,MATCH($G3&"_"&COLUMNS($H:H),$F:$F,0)),"")

    and copy it across into I3:L3. Then copy H3:L3 down to row 27.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-22-2004
    Location
    Visalia, CA / USA
    MS-Off Ver
    2016
    Posts
    78

    Re: Looking up multiple values based on a single criterion

    Excellent. Thanks so much, Pete. I tried it and it works perfectly.

    Have a great 2014!

    Bill

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

    Re: Looking up multiple values based on a single criterion

    Yes, Happy New Year to you, Bill.

    You might need a reminder - if that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. [SOLVED] How to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  2. VBA.array to sum values based on multiple criterion and dates
    By Varmark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2011, 09:33 PM
  3. Need to get multiple values based on a single value
    By PatricktCrook in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2010, 01:49 PM
  4. Multilookup based on Multiple criterion
    By all4excel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-04-2008, 09:08 PM
  5. [SOLVED] Find Multiple instances of Single Criterion in Row & Return To a Single Col
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-09-2006, 10:10 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