Modulus 11 excel formulae to generate 7th digit

reggie k

New Member
Joined
Nov 7, 2012
Messages
15
Hi Guys, is there anyone know modulus 11 excel formulae to generate 7th digit.

Please see below formulae that i tried and it didn't work.

=MOD(SUM(B1:G1*B2:G2),11)=0

Below is Actual calculation.
Example: find the check digit for the number 036532
[TABLE="width: 361"]
<tbody>[TR]
[TD="width: 15%"][/TD]
[TD="width: 17%"]3
[/TD]
[TD="width: 17%"]6
[/TD]
[TD="width: 17%"]5
[/TD]
[TD="width: 17%"]3
[/TD]
[TD="width: 18%"]2
[/TD]
[/TR]
[TR]
[TD="width: 15%"]x7
[/TD]
[TD="width: 17%"]x6
[/TD]
[TD="width: 17%"]x5
[/TD]
[TD="width: 17%"]x4
[/TD]
[TD="width: 17%"]x3
[/TD]
[TD="width: 18%"]x2
[/TD]
[/TR]
[TR]
[TD="width: 15%"][/TD]
[TD="width: 17%"]18
[/TD]
[TD="width: 17%"]30
[/TD]
[TD="width: 17%"]20
[/TD]
[TD="width: 17%"]9
[/TD]
[TD="width: 18%"]4
[/TD]
[/TR]
</tbody>[/TABLE]
0 + 18 + 30 + 20 + 9 + 4 = 81
81/11 = 7 remainder 4
11 - 4 = 7
7 is therefore the check digit.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Code:
{=11-MOD(SUM(B1:G1*B2:G2),11)}
Note this is an array formula. It means that the squiggly brackets are not really there, rather you need to enter the formula by pressing CTRL-SHIFT-ENTER.
 
Upvote 0
Hi Joe4, thanks for the reply. But i didn't get what you mean by enter the formula by pressing CTRL-SHIFT-ENTER?
 
Upvote 0
Hi JOE4, thanks it worked.

=11-MOD(SUM(B1:G1*B2:G2),11)

if 7th digit is greater then 9, i want it should be printed as X, any idea?
 
Upvote 0
Since that formula that figures that out is an Array formula, I don't think we can do it all in one Excel formula.
If the formula above is placed in cell H2, then you can add this formula in another cell:
Code:
=IF(H2>9,H2,"X")

Note that I have done check digit programming before, and because of the complexity, I usually create a User Defined Function in VBA to do the whole calculation and return the final result.
When you have long or complex functionality, I find that usually works better and is easier to maintain.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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