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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try

=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)
 
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: 87
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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