Dear All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I am trying to calculate the check digit(13<SUP>th</SUP> digit in the EAN) for my company’s EAN codes based on the 12 digit prefixed number.<o></o>
The method of calculating of the CHECK DIGIT(13<SUP>th</SUP> & last digit) of EAN is as follows:-<o></o>
1)The even position number needs to be multiplied by 3.<o></o>
2) The even position number needs to be multiplied by 1.<o></o>
3)The result needs to be added(1+2).<o></o>
4)The result needs to be substracted from the nearest equal or higher multiple of ten.<o></o>
<o></o>
I have put one formula to derive the CHECK DIGIT which is yielding the correct result.<o></o>
Just curious if there is any shorter & smarter formula than the one that I have put.<o></o>
The sample data is as follows:-<o></o>
<o></o>
Sheet1
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 106px"><COL style="WIDTH: 59px"><COL style="WIDTH: 99px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>B</TD><TD>C</TD><TD>D</TD></TR><TR style="HEIGHT: 63px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">12 Digit EAN Codes(Without Check Digit)</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">Check Digit</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">13 Digit EAN Codes(With Check Digit)</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff99">890257010027</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #c0c0c0">7</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #c0c0c0">8902570100277</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; BORDER-LEFT-STYLE: groove; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; FONT-SIZE: 10pt; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>C4</TD><TD>=CEILING(MID(B4,1,1)*1+MID(B4,2,1)*3+MID(B4,3,1)*1+MID(B4,4,1)*3+MID(B4,5,1)*1+MID(B4,6,1)*3+MID(B4,7,1)*1+MID(B4,8,1)*3+MID(B4,9,1)*1+MID(B4,10,1)*3+MID(B4,11,1)*1+MID(B4,12,1)*3,10)-(MID(B4,1,1)*1+MID(B4,2,1)*3+MID(B4,3,1)*1+MID(B4,4,1)*3+MID(B4,5,1)*1+MID(B4,6,1)*3+MID(B4,7,1)*1+MID(B4,8,1)*3+MID(B4,9,1)*1+MID(B4,10,1)*3+MID(B4,11,1)*1+MID(B4,12,1)*3)</TD></TR><TR><TD>D4</TD><TD>=B4&C4</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
I am trying to calculate the check digit(13<SUP>th</SUP> digit in the EAN) for my company’s EAN codes based on the 12 digit prefixed number.<o></o>
The method of calculating of the CHECK DIGIT(13<SUP>th</SUP> & last digit) of EAN is as follows:-<o></o>
1)The even position number needs to be multiplied by 3.<o></o>
2) The even position number needs to be multiplied by 1.<o></o>
3)The result needs to be added(1+2).<o></o>
4)The result needs to be substracted from the nearest equal or higher multiple of ten.<o></o>
<o></o>
I have put one formula to derive the CHECK DIGIT which is yielding the correct result.<o></o>
Just curious if there is any shorter & smarter formula than the one that I have put.<o></o>
The sample data is as follows:-<o></o>
<o></o>
Sheet1
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 106px"><COL style="WIDTH: 59px"><COL style="WIDTH: 99px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>B</TD><TD>C</TD><TD>D</TD></TR><TR style="HEIGHT: 63px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">12 Digit EAN Codes(Without Check Digit)</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">Check Digit</TD><TD style="TEXT-ALIGN: center; FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">13 Digit EAN Codes(With Check Digit)</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ffff99">890257010027</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #c0c0c0">7</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #c0c0c0">8902570100277</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; BORDER-LEFT-STYLE: groove; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; FONT-SIZE: 10pt; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>C4</TD><TD>=CEILING(MID(B4,1,1)*1+MID(B4,2,1)*3+MID(B4,3,1)*1+MID(B4,4,1)*3+MID(B4,5,1)*1+MID(B4,6,1)*3+MID(B4,7,1)*1+MID(B4,8,1)*3+MID(B4,9,1)*1+MID(B4,10,1)*3+MID(B4,11,1)*1+MID(B4,12,1)*3,10)-(MID(B4,1,1)*1+MID(B4,2,1)*3+MID(B4,3,1)*1+MID(B4,4,1)*3+MID(B4,5,1)*1+MID(B4,6,1)*3+MID(B4,7,1)*1+MID(B4,8,1)*3+MID(B4,9,1)*1+MID(B4,10,1)*3+MID(B4,11,1)*1+MID(B4,12,1)*3)</TD></TR><TR><TD>D4</TD><TD>=B4&C4</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4