+ Reply to Thread
Results 1 to 2 of 2

Create formula or macro to add upc check digit with leading zero

Hybrid View

  1. #1
    Registered User
    Join Date
    08-26-2011
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2007
    Posts
    1

    Create formula or macro to add upc check digit with leading zero

    I've been able to create working cells that have all 11 digits of the upc, create the correct check digit and show up as a working bar code. I have not been able to do this with upc numbers that start with zero. Any suggestions?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Create formula or macro to add upc check digit with leading zero

    Hello and welcome to the forum,

    Does the end result still need to be read by excel as number?

    Depending on your answers, you can use something like:
    =TEXT(A1,"0000")
    And the result for 1, 10, 100 and 1000 are as follows:
    1	0001
    10	0010
    100	0100
    1000	1000
    Hope this helps.

    abousetta
    Last edited by abousetta; 08-26-2011 at 08:46 PM. Reason: Found the answer to how long a UPC code is
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ 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