+ Reply to Thread
Results 1 to 10 of 10

Vlookup Value Issue

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Vlookup Value Issue

    Hi,

    I have a value in my worksheet that I'm trying to find with a vlookup. I cannot change the value, so this has to be solved within the vlookup.

    Some things I know:
    -Searching for 220 = #N/A
    -Searching for "220" = #N/A
    -Hitting enter on cell, then searching for 220 works (but I can't do this)
    -Trimming the value, then searching for "220" works (but I can't do this)
    -Searching for " 220" = #N/A
    -LEN only returns 3 for the value

    I've attached an example.
    Attached Files Attached Files
    Last edited by yawnzzzz; 04-01-2011 at 04:48 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup Value Issue

    Changing your formula to:

    =VLOOKUP(C1,$C1:$C1,1,FALSE)

    also works

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Vlookup Value Issue

    Quote Originally Posted by Cutter View Post
    Changing your formula to:

    =VLOOKUP(C1,$C1:$C1,1,FALSE)

    also works
    Correct. This won't solve my issue though because I'm deriving the value from elsewhere. So, I really need to know how to type in the equivalent of C1.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup Value Issue

    Can you type in the equivalent in another cell and refer the VLOOKUP() to that cell?

    I don't know why the direct numeric reference in the formula doesn't work. It is not a numeric/text issue because C1 is formatted as General and =ISNUMBER(C1) returns TRUE.

  5. #5
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Vlookup Value Issue

    Quote Originally Posted by Cutter View Post
    Can you type in the equivalent in another cell and refer the VLOOKUP() to that cell?

    I don't know why the direct numeric reference in the formula doesn't work. It is not a numeric/text issue because C1 is formatted as General and =ISNUMBER(C1) returns TRUE.
    Basically, I'm going to have a number such as 220.9 as my starting value for the vlookup. I can round it down, change it to text, add spaces, etc., but I must use it to find that 220 cell.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup Value Issue

    cant say i can see whats causing it but just select the coloumn then data/text to columns click finish should fix it for entire column
    "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

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup Value Issue

    OK, so you're making that manipulation in a cell. (You wouldn't want to change it in such a way that it doesn't match the values in your lookup range)
    And you would use that cell reference in your VLOOKUP().
    That doesn't work?
    Last edited by Cutter; 03-30-2011 at 09:57 AM.

  8. #8
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Vlookup Value Issue

    Quote Originally Posted by martindwilson View Post
    cant say i can see whats causing it but just select the coloumn then data/text to columns click finish should fix it for entire column
    That's not really an option. The table is going to be pasted in from another source, and my reference to find it isn't static either. So, my only option is to be able to come-up with the correct value in my vlookup to where it finds that unmanipulated cell.

  9. #9
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Vlookup Value Issue

    Have you tried formatting the entire Column C to something like Accounting with no decimal places?

  10. #10
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Vlookup Value Issue

    I saved it as an Excel 2007 file, so I could unzip it and look at the XML.

    Here's what I found:
    Please Login or Register  to view this content.
    You can see that for whatever reason the value is actually 220.00000000000003 even though this isn't visible, and if you touch the cell it corrects itself.

+ 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