+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP Problem

  1. #1
    Registered User
    Join Date
    06-20-2009
    Location
    Belgrade, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    35

    VLOOKUP Problem

    I have a little bit of problem with lookup function. When i paste values from another worksheet (paste special, values) in a cell which is lookup value i get #N/A. These values are numbers. When i put '7 for example i get the values i want from lookup table. I have a lot of these cells and its tedious job to put ' in front of every value. Is there a quicker solution?
    Last edited by sakinen; 06-29-2009 at 08:23 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: VLOOKUP Problem

    You can convert the number to text with the VLOOKUP formula by concatenating "" to the lookup value, for example if your VLOOKUP is currently

    =VLOOKUP(A1,B1:C10,2,0)

    change to

    =VLOOKUP(A1&"",B1:C10,2,0)

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: VLOOKUP Problem

    Two approaches come to mind....

    1) Change the lookup table so the first column contains numbers, instead of numeric text.

    2) After pasting the values into the cells (and assuming you're pasting a column of values), try this:
    • Select the range of pasted values
    • Data.text-to-columns
    ...Click: Next
    ...Click: Next
    ...Check: Text
    ...Click: Finish

    That will change the pasted values to text.

    Does either of those suggestions help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    06-20-2009
    Location
    Belgrade, Serbia
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: VLOOKUP Problem

    Quote Originally Posted by Ron Coderre View Post
    Does either of those suggestions help?
    Please Login or Register  to view this content.
    This one helped. Thanks a lot guys!

+ 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