+ Reply to Thread
Results 1 to 5 of 5

Figuring out checksum formula..

  1. #1
    Registered User
    Join Date
    12-25-2004
    Posts
    61

    Figuring out checksum formula..

    I am trying to find a checksum digit...I have the whole formula figured out except fo the last part. I am working with the number 26. How can I find the smallest number which, when added to my number (26), produces a multiple of 10.

    basically, that is

    26 + x = a multiple of 10 or
    26 + x = 30
    26 + 4 = 30

    Checksum = 4.

    So I need excel to figure out which number after 26 is a multiple of 10 (in this case, its 30), and then 30 - 26.

    Thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,723
    I'm not sure if I understand. Is the 26 variable and you want a formula to calculate the checksum? If the variable (26) is in A1 try

    =MOD(-A1,10)

  3. #3
    Registered User
    Join Date
    12-25-2004
    Posts
    61
    Thats it! Thank you so much!

  4. #4
    Registered User
    Join Date
    12-25-2004
    Posts
    61
    How can I find the number of digits in a cell?

    For example, A1 = 0562652

    The answer would be 7

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,723
    Try

    =LEN(A1)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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