B
Bob Crossley
Hello All-
I am working on a price book in Excel 2003. The price book includes
UPC-A codes.
Our number is 0-51943-XXXXX-X. We have approx. 250 different codes.
I am trying to format column A so that all I have to enter is the last
5 digits and cell formatting will add the 0-51943. Column B will be
the equation to return the code plus the check digit. I am using this
equation to return the full 12 digit code including the check digit;
=A1&MOD(10-MOD(SUMPRODUCT(MID(A1,ROW($1:$11),1)*(1+2*MOD(ROW($1:$11),2))),10),10)
This equation returns the correct check digit ONLY if I enter A1 as
'05194350030 (example number, note single quote).
This works fine IF these is no need to further format. My problem is
the equation returns a number that I cannot format to 0-51943-50030-0,
a normal UPC-A format.
I would be most appreciative if someone would lend a hand or thought.
Thanks, Bob Crossley
I am working on a price book in Excel 2003. The price book includes
UPC-A codes.
Our number is 0-51943-XXXXX-X. We have approx. 250 different codes.
I am trying to format column A so that all I have to enter is the last
5 digits and cell formatting will add the 0-51943. Column B will be
the equation to return the code plus the check digit. I am using this
equation to return the full 12 digit code including the check digit;
=A1&MOD(10-MOD(SUMPRODUCT(MID(A1,ROW($1:$11),1)*(1+2*MOD(ROW($1:$11),2))),10),10)
This equation returns the correct check digit ONLY if I enter A1 as
'05194350030 (example number, note single quote).
This works fine IF these is no need to further format. My problem is
the equation returns a number that I cannot format to 0-51943-50030-0,
a normal UPC-A format.
I would be most appreciative if someone would lend a hand or thought.
Thanks, Bob Crossley