Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
Ilan
 
Posts: n/a
Default Creating a Check Digit

Please help!

I'm trying to create a check digit using an existing string of 20 numbers.
The calculation of this digit must follow this method
1. All even numbers added together
2. All odd numbers added together and multiplied by 3
3. These two results need to be added together
4. Take the last digit of the result in 3 and subtract 10 (The result needs
to be a single check digit between 0 & 9)

EG. 01248120470000003001, results in a check digit of 9

There may be up to a million of these strings of numbers!

My question is can this task be performed using one equation? I have split
it up into sections to keep it simple for now, but I am stuck on section 4.

Any help much appreciated...many thanks in advance

Ilan
  #2   Report Post  
Posted to microsoft.public.excel.charting
Jerry W. Lewis
 
Posts: n/a
Default Creating a Check Digit

=MOD(SUM(IF(MOD(MID(string,ROW(A1:A20),1),2),3,1)* MID(string,ROW(A1:A20),1)),10)

Array entered (Ctrl-Shift-Enter). I don't see what this has to do with
charting.

Jerry

Ilan wrote:

Please help!

I'm trying to create a check digit using an existing string of 20 numbers.
The calculation of this digit must follow this method
1. All even numbers added together
2. All odd numbers added together and multiplied by 3
3. These two results need to be added together
4. Take the last digit of the result in 3 and subtract 10 (The result needs
to be a single check digit between 0 & 9)

EG. 01248120470000003001, results in a check digit of 9

There may be up to a million of these strings of numbers!

My question is can this task be performed using one equation? I have split
it up into sections to keep it simple for now, but I am stuck on section 4.

Any help much appreciated...many thanks in advance

Ilan


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excell Check Digit Formula tnelson Excel Worksheet Functions 1 August 28th 05 11:30 PM
Mod-10 Check Digit Union70 Excel Worksheet Functions 4 March 8th 05 08:58 AM
Excel should have a function to verify the check digit on UPC num. Brian S B Excel Discussion (Misc queries) 1 February 1st 05 09:27 PM
Creating Formula using check boxes Anthony Slater Excel Discussion (Misc queries) 3 January 4th 05 04:03 PM
Creating a check box that does not require security clearance. Maverick2U Excel Worksheet Functions 6 December 14th 04 03:46 AM


All times are GMT +1. The time now is 01:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"