+ Reply to Thread
Results 1 to 4 of 4

vvlookup and cell format

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    7

    Unhappy vvlookup and cell format

    Hello everyone
    When I use vlookup from one spreadsheet to another, it works fine. Today I have a price list that was emailed in the body of an email. I can copy and paste it into an excel sheet, with columns, but I cannot get vlookup to work. After a TREMENDOUS amount of fiddling with cell formats and =text formula, I was able to get some of the part numbers to work with vlookup, but only the ones that are all numerals. None of the part numbers that contain letters and dashes work (I get #NA).

    I am certain the issue is the number formatting on the spreadsheet I created by copy and pasting from the email body. How do I fix this???

    Thanks in advance for any help you can offer because it is driving me crazy. or crazier.

    John

    EDIT:
    I was able to get this to work, but would love to know what the issue was. I started with new spreadsheeets. the part numbers with dashes and letters worked fine off the bat. To make the cells that were all numerals work, I had to double click inside each cell. Why did double clicking each cell make a difference?
    Last edited by johnnyjomp; 04-22-2020 at 10:49 AM. Reason: Update

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: vvlookup and cell format

    There are several ways
    1. convert text value to number
    check column format . It must be not text. in a cell enter 1 or 0 copy it and paste to you data area with Past special. Use Multyply or Add (for 1 or 0)
    2. Use two level of Vlookup
    =iferror(vlookup(value,,,),vllokup(value&"",,,))

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: vvlookup and cell format

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  4. #4
    Registered User
    Join Date
    10-27-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    7

    Re: vvlookup and cell format

    Quote Originally Posted by BMV View Post
    There are several ways
    1. convert text value to number
    check column format . It must be not text. in a cell enter 1 or 0 copy it and paste to you data area with Past special. Use Multyply or Add (for 1 or 0)
    2. Use two level of Vlookup
    =iferror(vlookup(value,,,),vllokup(value&"",,,))
    Hello BMV.
    thank you for the reply.

    I spent a lot of time trying to convert numbers to text because the only numbers that worked were marked as "number stored as text". I created new spreadsheets and I got it all to work by double clicking the cells where there were numbers (no text or dashes) and turning them into "number stored as text".

    All so strange that I never had this problem before!

    Thank you again for your reply
    John

+ 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. Replies: 4
    Last Post: 10-05-2017, 09:37 AM
  2. Replies: 4
    Last Post: 03-13-2015, 02:32 AM
  3. Replies: 3
    Last Post: 02-24-2015, 02:58 AM
  4. Replies: 1
    Last Post: 07-03-2014, 06:33 AM
  5. [SOLVED] take a cell value of nixed format and multiply another cell of mixed format
    By AllenF in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-09-2014, 01:36 AM
  6. Replies: 1
    Last Post: 06-27-2005, 06:05 AM
  7. [SOLVED] How do I throw in an ISERROR function on a complicated VVLOOKUP?
    By KenRamoska in forum Excel General
    Replies: 2
    Last Post: 06-20-2005, 10:10 AM

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