+ Reply to Thread
Results 1 to 3 of 3

Vlookup for two look up values

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    61

    Vlookup for two look up values

    Hello,

    I am looking for a vlookup formula or any other formula that can work on two lookup values. I want the day to be directly shown after I enter the date. I attached an example worksheet to give you an idea of what I am looking for. I tried this formula but it doesn't work.


    =IF(D9="","",IF(D10="","",VLOOKUP(D9:D10,A1:G3,3,FALSE)))

    Thanks.

    Alya
    Attached Files Attached Files
    Last edited by alyaahmed; 03-31-2013 at 03:09 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup for two look up values

    try
    =INDEX(A3:G3,MATCH(D9&D10,INDEX(A1:G1&A2:G2,0),0))
    mind you why not use date format cell dddd
    =DATE(2013,D10,D9)
    or
    =TEXT(DATE(2013,D10,D9),"dddd")
    Last edited by martindwilson; 03-31-2013 at 03:07 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Vlookup for two look up values

    Thank you very much Martin D. Wilson. Your formula perfectly works. I will also try the other suggested formulas. I am a beginner at excel and I really value your suggestions and help. I am grateful to this valuable forum.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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