+ Reply to Thread
Results 1 to 9 of 9

vLookup not working, have already done trouble-shooting

  1. #1
    Registered User
    Join Date
    04-06-2016
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    2016
    Posts
    29

    Angry vLookup not working, have already done trouble-shooting

    I am trying to do a very simple vLookup, but it will not work correctly. My range is on a different tab within the same workbook. I have cleaned, trimmed, tried my "key value" column as both numbers and as general. I didn't create the original sheet, so I've checked it for hidden formats, compatibility issues, etc.

    My range is sorted ascending. The "key" is in the left-most column.

    Currently, the "key" column in both sheets is formatted as numbers.

    Excel is correctly interpreting "some" of the values and importing them into the first sheet correctly. However, Excel is NOT correctly interpreting some of the values and is returning "N/A".

    I guess that is what confuses me. When I formatted the columns, I did so by clicking above the column and selecting the ENTIRE column. I did that for each column, so I don't understand why it correctly interprets some and then incorrectly interprets some.

    This particular sheet is law enforcement sensitive, so I cannot post it "as is". I could possibly redact it. Or, if I have any law enforcement peeps out there, I could share it with you.

    Anyone have any tips or tricks?

    Thanks, Diane

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: vLookup not working, have already done trouble-shooting

    In all the troubleshooting you did, did you check for leading and trailing spaces in the data?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: vLookup not working, have already done trouble-shooting

    check your columns with:
    =ISTEXT() or =ISNUMBER() and you'll be know what is what and why correct/incorrect

  4. #4
    Registered User
    Join Date
    04-06-2016
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    2016
    Posts
    29

    Re: vLookup not working, have already done trouble-shooting

    I did

    I swear this workbook is possessed.

  5. #5
    Registered User
    Join Date
    04-06-2016
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    2016
    Posts
    29

    Re: vLookup not working, have already done trouble-shooting

    Aaaah. I will try that. I swear this is still some hidden formatting somewhere. Thank you!

  6. #6
    Registered User
    Join Date
    04-06-2016
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    2016
    Posts
    29

    Re: vLookup not working, have already done trouble-shooting

    You may have hit on it, Sandy. It is saying that all of my values are Text; however, I've formatted them as Numbers with no decimal places. This is probably a really dumb question, but is there a formula to convert from text to number?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: vLookup not working, have already done trouble-shooting

    don;t use formatting from the ribbon. Excel should recognize your data: text aligned to the left, number aligned to the right. if something different you need to check this one value not whole column against additional space or something. it's hard to say soemthing more without seeing example excel file.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: vLookup not working, have already done trouble-shooting

    you can try Text2Columns "in place"

    btw. if there is a date - this is a number

    or select your data (column with "numbers") then use Home - Clear - Clear Formats
    Last edited by sandy666; 06-01-2018 at 05:56 PM.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: vLookup not working, have already done trouble-shooting

    Quote Originally Posted by Diane Hogue View Post
    You may have hit on it, Sandy. It is saying that all of my values are Text; however, I've formatted them as Numbers with no decimal places. This is probably a really dumb question, but is there a formula to convert from text to number?
    Formatting only changes the appearance of the cell, not it's underlying contents (unless you format a number as text), so changing the format of a text cell, does not really change anything about it.

    If you are still having a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Trouble Shooting formulas #REF #VALUE
    By king10001 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-29-2013, 07:33 AM
  2. [SOLVED] sum formula trouble shooting
    By kurl01 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2013, 07:43 AM
  3. Trouble Shooting VBA Vlookup
    By Decoderman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2011, 12:28 PM
  4. Trouble Shooting SumProduct Formula
    By rgold in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-01-2009, 01:42 PM
  5. Trouble Shooting FORMS Vba Code
    By TDL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2009, 11:56 AM
  6. [SOLVED] Trouble shooting Excel?
    By meersr in forum Excel General
    Replies: 1
    Last Post: 04-15-2006, 03:15 PM
  7. trouble shooting section
    By danielle in forum Excel General
    Replies: 1
    Last Post: 04-25-2005, 06:06 PM
  8. Excel trouble shooting - no gridlines
    By Stumped in forum Excel General
    Replies: 11
    Last Post: 01-12-2005, 07:06 PM

Tags for this Thread

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