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
3
6
5
3
2
x7
x6
x5
x4
x3
x2
18
30
20
9
4

<tbody>
</tbody>
0 + 18 + 30 + 20 + 9 + 4 = 81
81/11 = 7 remainder 4
11 - 4 = 7
7 is therefore the check digit.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,214,611
Messages
6,120,513
Members
448,967
Latest member
screechyboy79

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