+ Reply to Thread
Results 1 to 5 of 5

VLOOUP using barcode and number.

  1. #1
    Registered User
    Join Date
    04-29-2020
    Location
    Gold Coast, Australia
    MS-Off Ver
    Mac 16.23
    Posts
    3

    VLOOUP using barcode and number.

    I am trying to do a VLOOPUP using a barcode number which whilst it looks like a number is a actually a code.

    Barcode displays as "9344213000091" but when I convert it to a general format it displays as "9.34421E+12"

    In my second table the corresponding barcode number is actually a number not a code.

    I am almost certain these two differing number formats are returning me my #N/A error.

    How do I convert the coded barcode to a genuine number so the VLOOKUP will function. Or is there another way to get around this?

    Screen Shot 2020-04-30 at 11.19.25 am.jpg

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: VLOOUP using barcode and number.

    Try adding zero to looked up value in your fomula like this =VLOOKUP(0+A2...

    Good luck!

  3. #3
    Registered User
    Join Date
    04-29-2020
    Location
    Gold Coast, Australia
    MS-Off Ver
    Mac 16.23
    Posts
    3

    Re: VLOOUP using barcode and number.

    Thank you Estevaoba but that didn't work.

  4. #4
    Registered User
    Join Date
    04-29-2020
    Location
    Gold Coast, Australia
    MS-Off Ver
    Mac 16.23
    Posts
    3

    Re: VLOOUP using barcode and number.

    OK so I have found the solution if anyone else is interested.

    The problem was my second data set that I thought the barcode was formatted as Numbers was not, even though it was saying it was.
    I noticed the numbers were left justified, indicating they were not numbers.

    So I selected the barcode row and went to the Data tab and clicked "Text to Columns" then simply clicked "finish". I have no idea what this actually did but it fixed the issue.

  5. #5
    Registered User
    Join Date
    10-05-2017
    Location
    Bangalore
    MS-Off Ver
    Karnataka
    Posts
    49

    Re: VLOOUP using barcode and number.

    Just do format as a number for both, then you can use the Vlookup formula to get the answr

+ 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. how to convert a number to barcode
    By roofi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2015, 05:59 AM
  2. VBA to look up part number when scanning a barcode
    By Drake2007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2014, 06:29 PM
  3. Displaying a barcode number in a cell correctly.
    By GregSpurs in forum Excel General
    Replies: 4
    Last Post: 10-12-2012, 05:26 PM
  4. Replies: 1
    Last Post: 12-18-2011, 12:32 PM
  5. Display barcode of a number in excelsheet
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2009, 11:31 AM
  6. Converting a number into barcode
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2009, 09:50 AM
  7. Convert a number in excel to a barcode
    By Merlin54k in forum Excel General
    Replies: 1
    Last Post: 03-03-2009, 05:09 PM

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