+ Reply to Thread
Results 1 to 9 of 9

Adding 5 numbers to a single 3 digit

  1. #1
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    Adding 5 numbers to a single 3 digit

    Got one almost like the other one but different---

    07--26--08
    We need help from you experts again in excel....

    Question ---What is the Formula in excel for adding
    five numbers to a single 3 digit number and also
    when you add to the 3 digit number you do not carry
    over????
    Example:
    NO.-----+5
    678-----123
    901-----456
    889-----334
    All numbers are together in one row..
    Can someone please give me the formula.....
    Thank you so much
    Bob in Michigan

  2. #2
    Forum Contributor
    Join Date
    08-21-2006
    Location
    Ossett, West Yorkshire
    MS-Off Ver
    2003
    Posts
    150

    Smile

    Hi,
    Working on the same premis as the last thread try;
    =RIGHT(INT(A2/100)+$B$1)&RIGHT(INT(A2/10)+$B$1)&RIGHT(RIGHT(A2,3)+$B$1)
    This assumes that the number is in A2 and the number to + is in B1
    hope this helps
    regards Howard

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Adding 5 numbers to a single 3 digit

    With
    A1: (blank)
    B1: 5
    and
    A2: 678
    A3: 901
    A4: 889

    This formula adds the value in B1 to each digit in the Col_A cell
    and concatenates only the digit's from those values:
    Please Login or Register  to view this content.
    Copy that formula down through B4

    In the above exampe, these values are returned:
    B2: 123
    B3: 456
    B4: 334

    Is that something you can work with?
    Post back if you have more questions.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60
    formula does not work---

    row to add 5 digits to is row c and the numbers will go into row D
    answer goes into row D
    I want to add 5 to each number 5+6=1--7+5=2--8+5=3--nocarry over
    in adding each number----hope I explained it right---
    answer is 123 in row D

    C-2-3-4-row-----D-2-3-4-row
    678----------------------123answer
    901----------------------456answer
    889----------------------334answer

    thank you
    Bob in Michigan

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Adding 5 numbers to a single 3 digit

    Well, the formula can easily be adjusted to
    accommodate the different locations of the values...

    With
    D1: 5
    C2: 678
    C3: 901
    C4: 889

    Then....
    Please Login or Register  to view this content.
    Copy that formula down through D4

    The returned values will be:
    D2: 123
    D3: 456
    D4: 334

  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Add 5 to each digit in a 3 digit number and then concat. only the rightmost digits

    Here is yet another option (see encl. file)
    =SUMPRODUCT(RIGHT($B$1+MID(A3,{1,2,3},1),1)*{100,10,1})
    I found that all 3 solutions give the result you are looking for.

    I could just mention one thing. If the added number is negative, the two first formulas give a different result. I don't know if this is important and in such case what rule you prefer.

    Add: -1
    Result:
    3. 2. 1.
    567 567 567
    810 890 890
    778 778 778
    Hope this could be of use
    Ola
    Attached Files Attached Files
    Last edited by olasa; 07-26-2008 at 12:44 PM.

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    wd8ekd,

    Can you please read the forum rules below and then add the link to the other forum

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  8. #8
    Registered User
    Join Date
    06-12-2008
    Location
    Mi.
    MS-Off Ver
    excel 2007
    Posts
    60

    Olasa

    Hi Guys,

    Ok it works and thanks to everyone----

    Bob in Michigan

  9. #9
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    ...

    Good that it solved your problem.
    Thanks for the feedback
    Ola

+ 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