Calculate UPC Check Digit in Excel

jeffcomputers

New Member
Joined
Nov 13, 2018
Messages
2
ew1zX7x
I tried all of these formulas and none work for our example from this page: https://www.mrexcel.com/forum/excel-questions/310146-calculating-upc-barcode-check-digits-3.html

I am using the GS1 as a guide, as they are the rules of bar
ew1zX7x
codes :)

Code:
Formula Name     Product Name     Partial UPC     Calculated Check Digit     New UPC     Correct Check Digit     Is Correct          https://www.gs1.org/services/check-digit-calculator 
Giant Formula - Pmfming     Monster Ultra Sunrise     7084702090     0     70847020900     5     FALSE           
Tiny Formula - jlarkin     Monster Ultra Sunrise     7084702090     7     70847020907     5     FALSE

Screenshot: https://imgur.com/ew1zX7x

Favorite formula, not working (Tiny Formula - jlarkin)
=MOD(-SUM(MID(TEXT(C3,"000000000000"),{1,3,5,7,9,11;2,4,6,8,10,12},1)*{3;1}),10)
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You are welcome.

No experience with Google Sheets -- maybe

=MOD(-SUM(MID(TEXT(C3,"00000000000")&0,{1,3,5,7,9,11;2,4,6,8,10,12},1)*{3;1}),10)
 
Upvote 0
You are welcome.

No experience with Google Sheets -- maybe

=MOD(-SUM(MID(TEXT(C3,"00000000000")&0,{1,3,5,7,9,11;2,4,6,8,10,12},1)*{3;1}),10)
I got something that works. We can use =MOD(-SUM(mmult({3,1}, arrayformula(VALUE(MID(TEXT(C3,"00000000000")&0,{1,3,5,7,9,11;2,4,6,8,10,12},1))))),10)
 

Attachments

  • upc-check-digit.png
    upc-check-digit.png
    30.2 KB · Views: 96
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top