Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Algorithm Challenge

I am trying to create a check digit worksheet for an algorithm where staff
have to use the algorithm hundreds of times daily, so it has to be quick and
efficient.

The algorithm works where the first 12 digits are multiplied and summed
using simple math, and the REMAINDER of the of the sum divided by 9 must
equal the 13th digit.

For example:
My number is 0500450002883, so
1x0=0
2x5=10
3x0=0
4x0=0
5x4=20
6x5=30
7x0=0
8x0=0
9x0=0
10x2=20
11x8=88
12x8=96
where the sum = 264. If you divide 264 by 9, the remaider is 3, the check
digit.

What formula can I use to produce the remaider for 264/9 instead of getting
29.33?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Algorithm Challenge

=MOD(A1,9)

--
Kind regards,

Niek Otten

Microsoft MVP - Excel

"Lowkey" wrote in message
...
I am trying to create a check digit worksheet for an algorithm where staff
have to use the algorithm hundreds of times daily, so it has to be quick
and
efficient.

The algorithm works where the first 12 digits are multiplied and summed
using simple math, and the REMAINDER of the of the sum divided by 9 must
equal the 13th digit.

For example:
My number is 0500450002883, so
1x0=0
2x5=10
3x0=0
4x0=0
5x4=20
6x5=30
7x0=0
8x0=0
9x0=0
10x2=20
11x8=88
12x8=96
where the sum = 264. If you divide 264 by 9, the remaider is 3, the check
digit.

What formula can I use to produce the remaider for 264/9 instead of
getting
29.33?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Algorithm Challenge

=MOD(264, 9)
--
HTH...

Jim Thomlinson


"Lowkey" wrote:

I am trying to create a check digit worksheet for an algorithm where staff
have to use the algorithm hundreds of times daily, so it has to be quick and
efficient.

The algorithm works where the first 12 digits are multiplied and summed
using simple math, and the REMAINDER of the of the sum divided by 9 must
equal the 13th digit.

For example:
My number is 0500450002883, so
1x0=0
2x5=10
3x0=0
4x0=0
5x4=20
6x5=30
7x0=0
8x0=0
9x0=0
10x2=20
11x8=88
12x8=96
where the sum = 264. If you divide 264 by 9, the remaider is 3, the check
digit.

What formula can I use to produce the remaider for 264/9 instead of getting
29.33?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Algorithm Challenge

Awesome!

"Niek Otten" wrote:

=MOD(A1,9)

--
Kind regards,

Niek Otten

Microsoft MVP - Excel

"Lowkey" wrote in message
...
I am trying to create a check digit worksheet for an algorithm where staff
have to use the algorithm hundreds of times daily, so it has to be quick
and
efficient.

The algorithm works where the first 12 digits are multiplied and summed
using simple math, and the REMAINDER of the of the sum divided by 9 must
equal the 13th digit.

For example:
My number is 0500450002883, so
1x0=0
2x5=10
3x0=0
4x0=0
5x4=20
6x5=30
7x0=0
8x0=0
9x0=0
10x2=20
11x8=88
12x8=96
where the sum = 264. If you divide 264 by 9, the remaider is 3, the check
digit.

What formula can I use to produce the remaider for 264/9 instead of
getting
29.33?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Algorithm Challenge

=mod(264,9)



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Algorithm Challenge

see response in worksheet.functions

--
HTH

Bob Phillips

"Lowkey" wrote in message
...
I am trying to create a check digit worksheet for an algorithm where staff
have to use the algorithm hundreds of times daily, so it has to be quick

and
efficient.

The algorithm works where the first 12 digits are multiplied and summed
using simple math, and the REMAINDER of the of the sum divided by 9 must
equal the 13th digit.

For example:
My number is 0500450002883, so
1x0=0
2x5=10
3x0=0
4x0=0
5x4=20
6x5=30
7x0=0
8x0=0
9x0=0
10x2=20
11x8=88
12x8=96
where the sum = 264. If you divide 264 by 9, the remaider is 3, the check
digit.

What formula can I use to produce the remaider for 264/9 instead of

getting
29.33?



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
looking for my perfect algorithm meesh7391 Excel Discussion (Misc queries) 0 January 11th 06 12:06 AM
Algorithm Challenge Lowkey Excel Worksheet Functions 4 July 20th 05 06:40 PM
algorithm creation Gixxer_J_97[_2_] Excel Programming 11 February 11th 05 04:24 PM
help with algorithm dreamer[_3_] Excel Programming 6 January 9th 04 02:14 PM
Need help with algorithm RADO[_3_] Excel Programming 1 November 4th 03 12:37 PM


All times are GMT +1. The time now is 10:32 AM.

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"