+ Reply to Thread
Results 1 to 6 of 6

Thread: vlookup with two lookup values

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2003
    Posts
    3

    vlookup with two lookup values

    Hi,

    I need help and advise on how I can reference to two values using vlookup?
    I have attached the example.

    I need to reference from two lookup values. First is the date, next is the parameter depending if it is 2400, 0600, 1200 or 1800. The matching return value should be from column "swell height /dir"

    Example 1:
    Date Look up value is 28-Apr-10 and Parameter is 0600H. The return value should be 3.

    Example 2:
    Date Look up value is 29-Apr-10 and Parameter is 1800H. The return value should be ddd.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Vans1128; 05-14-2010 at 12:19 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    MSO2007 on WinXP/MSO2000 on Win7/winXP
    Posts
    2,176

    Re: vlookup with two lookup values

    Please attach a workbook. JPG's cannot be copied into Excel as data.
    ---
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: vlookup with two lookup values

    Hi ProtonLeah,

    Okays. I have attached the workbook.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: vlookup with two lookup values

    You need to fill the dates into each row, no blanks. Then you can use somthing like this:

    =INDEX(E:E,MATCH(H1&H2,INDEX(A:A&B:B,0),0))

    where H1 has the lookup date and H2 has the lookup Parameter

  5. #5
    Registered User
    Join Date
    05-13-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: vlookup with two lookup values

    Thank you teylyn! It works.

    I now have two sheets. The summary sheet where the formula is applied to 20 different cells.
    And the second sheet, acting like a database, where the cells reference all of its values from. Somehow everything started to lag. Is it normal? or is there a more efficient manner to go about this?

  6. #6
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: vlookup with two lookup values

    post a sample file with your data structure and a few dozen rows of dummy data.

+ 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