+ Reply to Thread
Results 1 to 5 of 5

Vlookup / hlookup

  1. #1
    Registered User
    Join Date
    06-30-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    22

    Vlookup / hlookup

    Greeting,

    First of all, I had tried SEARCH function. However, most samples are being used in .xlsx, while I do not have the access of that file. So if there's any sample reply, please use .xls.

    I managed to learn the use of HLOOKUP, =HLOOKUP(F2,B:E,2,FALSE)
    However, it's impossible for me to type in manually for 10k of entries.
    I'm seeking for a solution to click and drag for fill in for the rest of the row.

    Appreciate any helps, or even better if there's any other formula I could use here.

    p/s : i had a feeling i need to use INDEX and MATCH function?


    Thanks and Regards.
    Attached Files Attached Files
    Last edited by Coconutwei; 06-30-2011 at 05:20 AM.

  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 / hlookup

    you could just change your hlookup to(starting in g2)

    =HLOOKUP(F2,B:E,ROW(A2),FALSE)
    "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
    06-30-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    22

    Re: Vlookup / hlookup

    I got solution. Apparently most advised me to use INDEX and MATCH.

    =INDEX(B2:E2,MATCH(F2,$B$1:$E$1,0))

    I'm not familiar with the use of symbol "$". But I have to assume it's used to lockdown the variable of the cell. So when I click and drag, the formula would works.

    Thanks martindwilson.

  4. #4
    Registered User
    Join Date
    06-30-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    22

    Re: Vlookup / hlookup

    Please lock the thread. It's SOLVED.

  5. #5
    Registered User
    Join Date
    06-29-2011
    Location
    MUMBAI
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    85

    Re: Vlookup / hlookup

    how to upload a file on this forum?
    help appreciated
    REGARDS,
    VIPUL

+ 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