Jump to content
Server Maintenance This Week. ×

Checksum digit calculation for EAN-13


This topic is 6631 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

Can anybody help me with creating a calculation to generate the checksum digit for EAN-13 barcode? I know how it gets worked out.

The calculation needs to consider the 12 digits in the number as even and odd, where the first digit from left is even.

Then:

1. sum the digits in all odd positions and multipy the result by 3

2. sum the digits in all even positions

3. sum the totals calculated in step 1 and 2

4. The check digit is the number which, when added to the totals calculated in step 4, result in a number evenly divisible by 10.

5. If the sum calculated in 4 is already easily divisible by 10 the check digit is 0

Actually I can probably do all the calculations, I just can't figure out how to determine the odd and even positions. Or do I do this by doing a sum of a series of Left(text,number)?

By the way, I'm doing this for a database that's Filemaker 6.

Thanks for any help to get me going.

Gabriela

Link to comment
Share on other sites

This topic is 6631 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.