G
Guest
Has anyone written a formula to calculate the check digit for a 13 character EAN code from the leading 12 characters? (The 13th is the chaeck digit.)
character EAN code from the leading 12 characters? (The 13th is the chaeckStephen Brown said:Has anyone written a formula to calculate the check digit for a 13
...So the formula should read:
=10-MOD(SUM(VALUE(MID(TEXT(A1,"000000000000"),12-ROW(INDIRECT("1:12"))+1,1))
*IF(MOD(ROW(INDIRECT("1:12")),2),3,1)),10)