#1   Report Post  
Posted to microsoft.public.excel.misc
Mich modulus 11
 
Posts: n/a
Default Vezerid Modulus 11

vezerid, I can't get your formula to work properly. Should it be applied to a
number already with a check digit in it? It didn't work on the following
number in the example from the link you gave me

516192872

The check digit should be 2 so the total number is 5161928722 but when I ran
your formula on the above number, the check digit it came up with was 10
which indicates an error.

The formula you gave me was:


=11-MOD(SUMPRODUCT(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN( A1))),1)),
MOD(ROW(INDIRECT("1:"&LEN(A1)))-1,6)+2),11)

To append the check digit to the number

=value(A1&_formula_)

Michelle


  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Vezerid Modulus 11

Michelle,
I just realized there was a detail in the algorithm I overlooked. The
following formula is, I believe, correct (at least it produces 2 for
the specific number; if you have other numbers that you can check
manually, or you already know the answer, you can check these as well).

=11-MOD(SUMPRODUCT(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN( A1))),1)),MOD(LEN(A1)+1-ROW(INDIRECT("1:"&LEN(A1)))-1,6)+2),11)

Again it has to be array entered.

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.misc
Mich modulus 11
 
Posts: n/a
Default Vezerid Modulus 11

thank you, I shall give it a go

"vezerid" wrote:

Michelle,
I just realized there was a detail in the algorithm I overlooked. The
following formula is, I believe, correct (at least it produces 2 for
the specific number; if you have other numbers that you can check
manually, or you already know the answer, you can check these as well).

=11-MOD(SUMPRODUCT(VALUE(MID(A1,ROW(INDIRECT("1:"&LEN( A1))),1)),MOD(LEN(A1)+1-ROW(INDIRECT("1:"&LEN(A1)))-1,6)+2),11)

Again it has to be array entered.

HTH
Kostis Vezerides


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
modulus 11 formula Mich modulus 11 Excel Worksheet Functions 1 January 19th 06 11:19 AM


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"