+ Reply to Thread
Results 1 to 8 of 8

Formula like a Vlookup but to bring back multiple results

  1. #1
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Formula like a Vlookup but to bring back multiple results

    Hi all,

    I need to bring back multiple results from a list based on a specific text, then I need to populate cells across columns (i.e. on the same row). Please see example for exactly what I am after. I can only have one row per person which is why the results need to go into different columns.

    Any help will be appreciated.

    Thanks
    James
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Formula like a Vlookup but to bring back multiple results

    Try this in C2:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Re: Formula like a Vlookup but to bring back multiple results

    Hi WBD,

    If you've seen my reply please ignore as it was wrong. That formula does work. Thank you so much. I just need to try and understand it now!!

    Thanks
    James
    Attached Files Attached Files
    Last edited by dc007c0231; 04-26-2022 at 08:26 AM. Reason: Previous comments incorrect!

  4. #4
    Registered User
    Join Date
    04-26-2022
    Location
    Alexandria Virgina
    MS-Off Ver
    Microsoft Office 2019
    Posts
    2

    Re: Formula like a Vlookup but to bring back multiple results

    Good Morning ,

    What are the step by step process for completing a Vlookup formula in EXCEL.

  5. #5
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Formula like a Vlookup but to bring back multiple results

    Walkthrough of:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Just return blank if we run into difficulties!

    Please Login or Register  to view this content.
    Filter the table in K:M and only return the rows where column K is the same as A2. Assign this to a variable called f.

    Please Login or Register  to view this content.
    Generate a sequence of numbers with twice the number of entries as the number of rows in f. Start at 2. In our case, this will generate a sequence {2, 3, 4, 5, 6, 7}. Assign this to a variable called s.

    Please Login or Register  to view this content.
    Alternate between columns 2 and 3 of f and work down the table to return all columns. This is essentially returning INDEX(f, 1, 2), INDEX(f, 1, 3), INDEX(f, 2, 2), INDEX(f, 2, 3), INDEX(f, 3, 2), INDEX(f, 3, 3) - i.e. columns L and M from the table. Because this returns a result in rows, use TRANSPOSE to change it to a column result.

    Hope that helps.

    WBD

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Formula like a Vlookup but to bring back multiple results

    ANS. POST#1

    Cell C2 formula , drag down and across

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ANS. POST#3

    Cell C2 formula , drag down and across

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 04-26-2022 at 07:55 PM.

  7. #7
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Re: Formula like a Vlookup but to bring back multiple results

    Hi wk9128,

    Thank you for your formula, that also works very well. Much appreciated.

    Regards
    James

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Formula like a Vlookup but to bring back multiple results

    @dc007c0231 You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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. vlookup - bring back blank cell when it brings back 0 and N/A
    By julee.stein in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2018, 11:12 AM
  2. VLOOKUP - how to bring back multiple rows of data
    By RJL3313 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2018, 11:13 AM
  3. [SOLVED] Excel formula does not bring back results in all rows
    By jlmaytum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2017, 10:56 AM
  4. Array Formula Lookup - Bring back Lowest Date + Bring Back Cell Location
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 12:08 PM
  5. [SOLVED] Stop Vlookup bringing back 0's or #REF! and bring back blanks instead
    By Carling73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2013, 04:43 PM
  6. Replies: 1
    Last Post: 02-14-2012, 03:41 AM
  7. Match two cells and bring back the results from a third
    By amyj22x3 in forum Excel General
    Replies: 3
    Last Post: 10-28-2011, 12:50 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