+ Reply to Thread
Results 1 to 3 of 3

VLookup not working consistently

  1. #1
    Registered User
    Join Date
    02-18-2004
    Posts
    55

    VLookup not working consistently

    Any help greatly appreciated. I have a simple formula that looks at the last digit of a hosts port name and then does a VLookup against a table in order to balance the load. My problem is that the formula only works when the table ends with a letter, and not when ending in a number.

    REFERANCE CELL "B8" = 20:00:00:25:b5:40:a0:F0

    VLookup range in CELL A19-B34 =
    0 A
    1 B
    2 A
    3 B
    4 A
    5 B
    6 A
    7 B
    8 A
    9 B
    A A
    B B
    C A
    D B
    E A
    F B


    FORMULA = =VLOOKUP(RIGHT(B8,1),A19:B34,2)

    If my lookup ends with a letter, everything works great, when it ends with a number I get a "#N/A" result. Any and all help greatly appreciated.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLookup not working consistently

    Format the cells in A19:B34 as TEXT,

    select the range and go to Data|Text to Columns, then click Next, and Next again, then select Text from the data column format area and click Finish.
    Last edited by NBVC; 04-27-2012 at 03:26 PM.
    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
    02-18-2004
    Posts
    55

    Re: VLookup not working consistently

    GEEEEEZZZZZ!!!!!

    That did it!!!!

    THANK YOU!!!!!

+ 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