Check Digit Generation Formula

hemeraser

New Member
Joined
Jan 8, 2015
Messages
6
Working on generating a few thousand SSCC codes.

The code is 17 digits plus a check digit. For instance 00813590020000000 should return 008135900200000002.

The check digit is calculated by this process:


o18dt8X.png

I found a formula on these forums that calculates 13 digit codes but have came up short using Google to find a formula for what I need.
The formulas I found are:

=A2&(10 -MOD(SUMPRODUCT( MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)*((MOD(ROW(INDIRECT("1:"&LEN(A2))),2) =1) +3*(MOD(ROW(INDIRECT("1:"&LEN(A2))),2) =0))),10))

Any help would be appreciated.:eek:
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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