Results 1 to 29 of 29

how do I take a two digit number, separate the two digits, add them together, show result

Threaded View

  1. #1
    Registered User
    Join Date
    04-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    8

    how do I take a two digit number, separate the two digits, add them together, show result

    I am trying to create a small sheet that applies an algorithm to a nine digit barcode number to calculate the check digit which becomes the 10th.

    Attached is the spreadsheet. With the logic of the algorithm included in it.

    I've created the method of applying the multiplier to the individual digits of the barcode (In Row 6)

    The result of each calculation is in Row 7.

    The difficulty is that if the result is a number greater than 9, (in other words two digits) then the number needs to be split - e.g. 14 becomes 1+4 or 18 becomes 1+8, with the sum being the number displayed.

    I hope that makes sense - the algorithm is explained in the spreadsheet attached.

    I think something like IF result is < 9 , then subtract 10 and add 1 might do it....? But I don't know how to structure that in the cell.

    Any help appreciated!

    Greg
    Attached Files Attached Files
    Last edited by FDibbins; 04-07-2013 at 08:17 PM.

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