+ Reply to Thread
Results 1 to 2 of 2

Automating assigning a 12 digit UPC number

  1. #1
    Registered User
    Join Date
    05-12-2022
    Location
    USA
    MS-Off Ver
    Updated
    Posts
    1

    Automating assigning a 12 digit UPC number

    Hey everyone!

    At my workplace, I am tasked with assigning GTIN-12 UPC numbers for new products. We have a spreadsheet to assign these numbers but once I get the 11-digit UPC I have to manually enter the 11-digit number into a check digit calculator.

    Automating this process would save me tons of time.

    I've not been able to find formulas that work in previous threads. Here's an example of what I've seen.

    =CONCATENATE(A1,RIGHT(ROUNDDOWN((SUM(RIGHT(A1,1)+MID(A1,9,1)+MID(A1,7,1)+MID(A1,5,1)+MID(A1,3,1)+LEFT(A1,1))*3+SUM(MID(A1,10,1)+MID(A1,8,1)+MID(A1,6,1)+MID(A1,4,1)+MID(A1,2,1))),1)))

    You can see the formula the GTIN-12 check digit calculator uses on the gs1 website.

    Hopefully, someone can help me and others who have had this same issue.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automating assigning a 12 digit UPC number

    Hi

    Try

    =MOD(-SUM(MID(TEXT(A1,"00000000000\0"),{1,3,5,7,9,11;2,4,6,8,10,12},1)*{3;1}),10)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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: 6
    Last Post: 02-03-2019, 06:05 AM
  2. [SOLVED] Formatting to make 2 digit number show up at 3 digit number.
    By cadamhill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 06:58 PM
  3. Replies: 4
    Last Post: 09-12-2011, 12:00 PM
  4. Replies: 1
    Last Post: 09-08-2011, 03:06 PM
  5. [SOLVED] how to identify only 3 digit permuted number from list of 4 digit number
    By bigcrap in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-10-2011, 11:30 AM
  6. Replies: 2
    Last Post: 06-17-2010, 08:36 PM
  7. make values add to a certain sum by assigning a digit or chipher to it
    By orgon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-23-2009, 08:37 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