close

has anyone had a go at setting up a formula to check that a reference number
is valid via a modulus 11 check digit? i can't find that there is a function
specifically for it.

Michelle

Michelle,
I just saw the algorithm in the internet
(docs.hp.com/en/32209-90024/apds02.html)

the following formula calculates the check digit of a number in A1.

=11-MOD(SUMPRODUCT(VALUE(MID(A1,ROW(INDIRECT(quot;1:quot;amp;LEN( A1))),1)),
MOD(ROW(INDIRECT(quot;1:quot;amp;LEN(A1)))-1,6) 2),11)

To append the check digit to the number

=value(A1amp;_formula_)

HTH
Kostis Vezerides

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()