+ Reply to Thread
Results 1 to 3 of 3

Generating Formulas with criteria (13 = 3)

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Angry Generating Formulas with criteria (13 = 3)

    Hi forum, this is my first post here so a big hello to everyone.

    I'm an engineer and have to log into a custom database everyday. The password for the database is generated by adding two numbers together.

    So lets say 1234 + 5678

    Now, if a value goes over 9, only he last unit is used, e.g. 6+7 = 13 therefore 3 is the right number

    So the answer to the above value would be 6802:
    1 + 5 = 6
    2 + 6 = 8
    3 + 7 = 10 therefore 0 is used
    4 + 8 = 12 therefore 2 is used

    I'd like to write a spreadsheet that will work this out automatically using the given rules. I've been trying for days and not getting anywhere, can anyone help?

    Thanks in advance
    Last edited by NBVC; 01-11-2012 at 02:09 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Generating Formulas with criteria (13 = 3)

    Try:

    =RIGHT(LEFT(A1)+LEFT(A2))&RIGHT(MID(A1,2,1)+MID(A2,2,1))&RIGHT(MID(A1,3,1)+MID(A2,3,1))&RIGHT(RIGHT(A1)+RIGHT(A2))

    assuming always 4-digit numbers and that the values are currently in A1 and A2, respectively.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Generating Formulas with criteria (13 = 3)

    That works perfectly! you are a genius

+ 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