+ Reply to Thread
Results 1 to 5 of 5

Vlookup with 2 variables

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Vlookup with 2 variables

    Hi,

    I have the following data available on my DATA spreadsheet:

    Arrival Date
    Nationality
    Room Number

    On my Feedback Sheet I have the following data:
    Arrival Date
    Room Number

    How can I lookup the Nationality on my Feedback sheet based on the arrival date and room number? When using VLOOKUP() I can only enter one value to match, merging the date and room number together doesnt work...

    Any suggestions?

    Thanks,
    A2k

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup with 2 variables

    =VLOOKUP(arrival date & room number,CHOOSE({1,2},arrival date range & room number range,Nationality Range),2,0)
    this is an array formula Press Ctrl + Alt + Enter Keys
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Vlookup with 2 variables

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: Vlookup with 2 variables

    Thanks nflsales, works like a charm!
    A2k

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup with 2 variables

    If your question is resolved, mark it SOLVED using the thread tools and add reputation if you think some one helped you

+ 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 two Variables
    By domnicmifsud in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-15-2016, 09:37 AM
  2. [SOLVED] vlookup with 3 different variables
    By a2424 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2014, 01:51 AM
  3. vlookup against various variables
    By papah73 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-25-2014, 06:36 AM
  4. [SOLVED] Vlookup two variables
    By PERE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-28-2013, 06:36 AM
  5. [SOLVED] Can I identify variables using VLOOKUP, and then pass variable to another VLOOKUP?
    By Jeff C in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-05-2012, 05:54 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