+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP PROBLEM - Returns #N/A

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    VLOOKUP PROBLEM - Returns #N/A

    All,

    I have used VLOOKUP on numerous occasions but cannot figure out what I am doing wrong here. I have attached an extract of the sheet.

    Essentially I have a calculation which produces a series of values in column O. I want to return (in cell E3) the corresponding value in column E to that in O.

    The lookup value is located in E2. This look value will vary as it is return as the Maximum value found in column O.

    All I get is #N/A

    It is spoiling my day, please help!

    many thanks.
    Attached Files Attached Files
    Last edited by Excel_Monkey; 05-11-2012 at 07:16 AM. Reason: title changed to reflect question

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: VLOOKUP PROBLEM - Loosing will to live!

    Hi
    First 11,0491070083794 is not the max value of your range
    Second Vlookup You can use this way
    Use combination of MATCH and INDEX function
    Attached Files Attached Files
    Last edited by tom1977; 05-11-2012 at 06:43 AM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VLOOKUP PROBLEM - Loosing will to live!

    vlookup only returns values to the right of the lookup value (at least without array trickery). you need index and match
    =INDEX(E7:E94,MATCH(E2,O7:O94,0))
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    05-11-2012
    Location
    Berkshire
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: VLOOKUP PROBLEM - Loosing will to live!

    Vlookup problem.xlsxHi

    Have sorted for you.

    Your lookup column needs to be the far left as in the attached

  5. #5
    Registered User
    Join Date
    02-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: VLOOKUP PROBLEM - Loosing will to live!

    Thanks all, just learnt a lot.

    Firstly I wasn't aware the lookup column needs to be the far left - bit of a schoolboy error that one,

    Secondly, I am interested in the applications of the index and match tool. Why would I ever use vlookup in lieu of these?

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VLOOKUP PROBLEM - Returns #N/A

    no good reason. people use it because they don't know about or understand index/match :-)

+ 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