+ Reply to Thread
Results 1 to 9 of 9

Mod 43 Check Digit calculator

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    4

    Mod 43 Check Digit calculator

    I am trying to calculate the check sum character for a set of data. I found the following formula that seems to work for most characters/values, but it does not work for % (42). Any suggestions?

    =MID("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",
    MOD(SUMPRODUCT(SEARCH(MID(A1,ROW($1:$99),1),
    "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%") )-98,43),1)

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Mod 43 Check Digit calculator

    What should the checksum character be?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-04-2015
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    4

    Re: Mod 43 Check Digit calculator

    The character for 42 should be %.

    0 0
    1 1
    2 2
    3 3
    4 4
    5 5
    6 6
    7 7
    8 8
    9 9
    A 10
    B 11
    C 12
    D 13
    E 14
    f 15
    G 16
    h 17
    i 18
    j 19
    k 20
    l 21
    m 22
    n 23
    o 24
    p 25
    q 26
    r 27
    s 28
    t 29
    u 30
    v 31
    w 32
    x 33
    y 34
    z 35
    - 36
    . 37
    38
    $ 39
    / 40
    + 41
    % 42

  4. #4
    Registered User
    Join Date
    05-04-2015
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    4

    Re: Mod 43 Check Digit calculator

    I would expect +H90611210570/$11000000 to return +H90611210570/$11000000% using that formula.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Mod 43 Check Digit calculator

    Without thinking too hard,

    =IFERROR(MID("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",
    MOD(SUMPRODUCT(SEARCH(MID(A1,ROW($1:$99),1), "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%")) - 98, 43), 1), "%")

  6. #6
    Registered User
    Join Date
    05-04-2015
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    4

    Re: Mod 43 Check Digit calculator

    Thanks. That's a simple fix. I'd still like to know why the formula wasn't working, but this will work.

    Thank you.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Mod 43 Check Digit calculator

    Watch the formula evaluate with just the percent symbol in a cell and you'll see why.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,756

    Re: Mod 43 Check Digit calculator

    Another approach.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Mod 43 Check Digit calculator

    Much better.

+ 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. [SOLVED] UPC Check digit calculator, Textbox color change not working
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2014, 09:33 AM
  2. UPC Check digit calculator
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 11:26 PM
  3. How to add check digit to 6 digit number string...
    By unclejemima in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2013, 04:19 PM
  4. Macro to force format and check barcode check digit
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-02-2009, 10:27 AM
  5. [SOLVED] Mod-10 Check Digit
    By Union70 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2005, 08:06 PM

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