+ Reply to Thread
Results 1 to 4 of 4

Vlookup with multiple input and multiple output

  1. #1
    Registered User
    Join Date
    04-12-2016
    Location
    Swiss
    MS-Off Ver
    2016
    Posts
    2

    Vlookup with multiple input and multiple output

    Hello,

    I have a problem that is often discussed but I didn't found any solution that fits to me, may I ask you for an help?

    I have the following table:

    REGION Category AUTHO NAME SCO comment F BP IP BP FUNCTION
    WORLDWIDE SBS 1000000 Lorenzo Text Fire F BP 1 IP BP 1 Text
    WORLDWIDE SBS 1000000 Andrea Text Water F BP 2 IP BP 2 Text
    WORLDWIDE SBS 500000 Marco Text Earth F BP 3 IP BP 2 Text
    EAME CPG 50000 Lorenzo Text Sky F BP 3 IP BP 3 Text
    EAME CPG 20000 Giulio Text Wind F BP 4 IP BP 4 Text


    as you see, there's more than once Lorenzo, F BP 3 and IP BP2 for exemple


    I would let the user select the preferred input: it's a multiple choice based on three columns:
    exemple:
    Region Category Autho
    WORLDWIDE SBS 1'000'000


    I would show the multiple outputs which may occurs in the following table:
    Name Comment Finace BP Proc BP
    Lorenzo Fire F BP 1 IP BP 1
    Andrea Water F BP 2 IP BP 2



    I tried with the following function:
    =VLOOKUP(A4&B4&C4;CHOOSE({1,2};A18:A200&B18:B200&C18:C200;D18:D200);2;0)

    where row(4) is the input line
    and 18:200 is the whole table dimension.

    unfortunately I don't know how to apply the same formula on a new line but starting from the row (instead of 18) right after the result that have been founded.

    I would ask you for an help on this or if you have other simpler ideas!

    Thank you very much,

    Lorenzo

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup with multiple input and multiple output

    Hi and welcome to the forum.

    This is one of those cases where sight of a workbook is worth a thousand words of description.
    If you upload the workbook and manually add the results you expect to see in the layout you want then I'm sure we'll be able to assist further. Be sure to explain which ranges are original data and which are results and if it's not blindingly obvious how you arrive at the results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-12-2016
    Location
    Swiss
    MS-Off Ver
    2016
    Posts
    2

    Re: Vlookup with multiple input and multiple output

    Hello,

    thank you for your welcome and your answer,

    please find here the exemple, http://www.excelforum.com/attachment...1&d=1460637762

    I hope it will be clearer.

    Best Regards,
    Lorenzo
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup with multiple input and multiple output

    Hi,

    I suggest a Pivot Table as being the most efficient and elegant way.

    See attached.
    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)

Similar Threads

  1. [SOLVED] Multiple VLOOKUP for single output
    By Nepheal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2015, 10:54 PM
  2. [SOLVED] how to multiple vlookup from input sheet to output sheet
    By nur2544 in forum Excel General
    Replies: 7
    Last Post: 11-21-2012, 01:48 AM
  3. [SOLVED] Multiple Criteria to produce one output (Match and Vlookup)
    By aglopez08 in forum Excel General
    Replies: 2
    Last Post: 08-21-2012, 04:59 PM
  4. Replies: 7
    Last Post: 05-09-2012, 04:44 AM
  5. To get multiple output from a Vlookup in a single cell
    By Murthi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2011, 07:11 AM
  6. multiple output from any cell input
    By ploeg8393 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-21-2006, 06:56 PM
  7. Multiple input and output results
    By smoothie in forum Excel General
    Replies: 0
    Last Post: 06-12-2006, 01:10 PM

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.6.0 RC 1