+ Reply to Thread
Results 1 to 11 of 11

Barcode Check Digit Calaculation

  1. #1
    Registered User
    Join Date
    08-20-2008
    Location
    UK
    Posts
    2

    Barcode Check Digit Calaculation

    I have list of 65000 EAN13 Barcode numbers for which I need to calculate the check digits. does anyone know if there is an excel formula for doing this? Idealy I would like to have all the 12 digit codes in column 'A' and then in column 'B' the completed 13 digit code which have the check digit added. My first 12 digit code number in the sequence is 501790100001.

    Thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi ALC,

    Well, it's not pretty, but this formula should be able to calculate your check-digits:
    Please Login or Register  to view this content.
    The EAN-13 calculation steps are shown here: http://www.export911.com/e911/coding/eanParity.htm

    Perhaps someone can come up with a more "pretty" solution. I'm sure a UDF would work well, too, since you could then use something like:

    =GetCheckDigit(A1)

    Another option, which might be easier to see the calculation in progress (based on the steps referenced by the link above):
    Please Login or Register  to view this content.
    Last edited by Paul; 08-20-2008 at 10:53 PM.

  3. #3
    Registered User
    Join Date
    08-20-2008
    Location
    UK
    Posts
    2
    Hi pjoaquin, many thanks for the help. The second formula you gave seemed to work just fine to calaculate the check digit. I got the final result as follows:

    Cell A1 : 12 digit EAN13 barcode number
    Cell B1 : The second formula you gave to calculate the check digit
    Cell C1 : =CONCATENATE(A1,B1)

    I then converted column 'C' to a number via: Data - Text to columns - Delimited - Finish

    Probably not the quickest way as my Excel knowledge is limited, but it got me where I needed to be.

    Once again thanks for the help

    Rich

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Nice work by Paul.

    You should be able to change the formula in B1 to eliminate the other steps:

    =(A1 & LOOKUP(MOD(3 * SUMPRODUCT(--MID(A1,ROW(1:12), 1) *
    (MOD(ROW(1:12),2) = 0) ) + SUMPRODUCT(--MID(A1,ROW(1:12), 1) *
    (MOD(ROW(1:12),2) = 1) ), 10), {0,1,2,3,4,5,6,7,8,9}, {0,9,8,7,6,5,4,3,2,1}) ) + 0

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Barcode Check Digit Calaculation

    Hi, you can follwing the below steps to calculate the check digit, it's easy in fact.
    http://www.keepautomation.com/produc...es/ean_13.html

  6. #6
    Registered User
    Join Date
    12-06-2012
    Location
    Kenmore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Barcode Check Digit Calaculation

    Hi, I've seen an article about EAN 13 barcode checksum manual calculation on BarcodeIsland.com.
    Any way, there're lot of free excel barcode generator solutions that can calculate the check digt, like Excel EAN/UPC barcode genrator or this barcode creator.

  7. #7
    Registered User
    Join Date
    01-11-2013
    Location
    Tver, Russia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Barcode Check Digit Calaculation

    Great!!!!!! Nice work Paul. Its help me alot. Thanks again

  8. #8
    Registered User
    Join Date
    01-22-2013
    Location
    Malta
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Barcode Check Digit Calaculation

    nice work. and what about EAN8? does anyone have a solution for the check digit ?

  9. #9
    Registered User
    Join Date
    07-03-2013
    Location
    implaile
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Barcode Check Digit Calaculation

    This does not work for me unfortunately. I'm following exactly the steps Paul described, but it gives me formula error. the post is from 2008....5 years later I can imagine that things may have changed?

    does anyone have a working excel formula that does generate a list of the EAN code with the control/check number ?

    Please let me know, I need this urgently

  10. #10
    Registered User
    Join Date
    06-03-2014
    Posts
    1

    Re: Barcode Check Digit Calaculation

    thanks for sharing this method, i was wondering can excel ean 13 barcode generator control automatically output check digit for us. if so that would be so much easy
    we don't need to calculate anymore. is it possible?

  11. #11
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Barcode Check Digit Calaculation

    Hi,
    How "late" am I in order to present a slightly different formula ?

    =A1&MOD(10-MOD(SUM(--MID(A1,{12,10,8,6,4,2},1))*3+SUM(--MID(A1,{11,9,7,5,3,1},1)),10),10)
    -----
    Elm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check Boxes & Linkedcell
    By MBigD011 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 03-15-2010, 10:34 AM
  2. VBA; find string and copy
    By Bill Rudd in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-06-2008, 10:41 PM
  3. macros for read barcode digit and find
    By the_power in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2007, 11:10 AM
  4. Barcode read and find in excel.
    By the_power in forum Excel General
    Replies: 0
    Last Post: 07-19-2007, 09:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1