Hi Everyone,
My company is in the process of creating UPC barcodes for our product lines. We use the GTIN-12 format - eleven digits plus the calculated twelfth check digit. Right now, we're entering the 11 digits into an online check digit calculator to get that last number; the problem is, we have about 40,000 items to go and none of us want to type all of that into a calculator.
This is the formula:
N1 through N11 signify the digits in the code
(N1*3)+(N2*1)+(N3*3)+(N4*1)+(N5*3)+(N6*1)+(N7*3)+(N8*1)+(N9*3)+(N10*1)+(N11*3)
Take the sum of this and subtract it from the nearest equal or higher multiple of 10.
Example:
74702813169
(7*3)+(4*1)+(7*3)+(0*1)+(2*3)+(8*1)+(1*3)+(3*1)+(1*3)+(6*1)+(9*3)=102
110-102=8
Complete barcode: 747028131698
Is it possible to calculate this in Excel? The problem I'm finding is identifying what to subtract the sum from, the nearest equal or higher multiple of 10. There must be a way, it's just that none of us know how.
I hope I've explained this clearly enough. Can anyone help us? It would be greatly appreciated!
Brianna
Bookmarks