Closed Thread
Results 1 to 8 of 8

Vlookup Issue

  1. #1
    Registered User
    Join Date
    10-11-2007
    Posts
    9

    Vlookup Issue

    I have the following table error

    Qty Type Code List Price Sub Total Line Total
    1 8 tier Special #N/A #N/A #N/A #N/A

    It should read

    1 8 tier Special A101001 £20.00 £40.00 £32.00

    Under type my formula is =IF(B15="","",VLOOKUP(B15,picklist,2) )

    My data table looks like

    Type Code RRP

    8 tier super A011001 £262.65
    8 tier super 24hr A071019 £304.25
    8 tier super 48hr A021002 £335.00

    How come I am getting the #NA

    Ta

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Since your data is probably not in ascending order, you should add the False identifier at the end of the Vlookup in order to search exact matches....

    =IF(B15="","",VLOOKUP(B15,picklist,2,False))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-11-2007
    Posts
    9
    Nope, I still get the #NA

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by babypink
    Nope, I still get the #NA
    Then you probably don't have an exact match...

    Make sure the Type column in your picklist table doesn't have any extra spaces in the field (beginning, between words, end).

    If still having issues, attach sample workbook.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please do not crosspost....especially 1/2 hour after someone has already tried to help you....

    http://www.mrexcel.com/board2/viewtopic.php?t=296920

  6. #6
    Registered User
    Join Date
    10-11-2007
    Posts
    9
    It is at no detriment to you and I appreciate your assistance here, but I would like to stress that I am entitled to post wherever and whenever I like. I like to keep my options open especially if I can get a different perspective against my question.

    Cheers

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by babypink
    It is at no detriment to you and I appreciate your assistance here, but I would like to stress that I am entitled to post wherever and whenever I like. I like to keep my options open especially if I can get a different perspective against my question.

    Cheers
    Please take the time to read the article here: http://www.excelguru.ca/node/7

    Note: It is also against this forum's rules to cross-post (especially without referencing the other post(s))!

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    babypink,

    Please read forum rules below. As NBVC says Cross posting is not permitted without the link

    Please PM me if you agree to the forum rules

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Closed 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