+ Reply to Thread
Results 1 to 5 of 5

Sum of numbers of same cell and the result will be 0 to 9 or 11, 22, 33 or 44

  1. #1
    Registered User
    Join Date
    01-08-2018
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    1

    Sum of numbers of same cell and the result will be 0 to 9 or 11, 22, 33 or 44

    Hi,
    I would like to know if you could help me create one formula to excel.
    I would like to make a sum of each number of same cell.
    The sum has to have the result of 0 to 9 or 11 or 22 or 33 or 44.
    For example: If the cell has the number 911. The sum will be 9+1+1=11
    For example if the number is 9996=9+9+9+6=33
    For example if the numer is 23564=2+3+5+6+4=20=2+=2
    In this moment I use this formula:
    =If(REST(A1;9)=0;“9”;REST(A1;9)) (but the result will be from 0 to 9)
    I need to add the exception if the result is 11 or 22 or 33 or 44
    Can anyone help me?
    I have the formula I can cover also the result of 11 but I need also to 22 or 33 or 44
    =IF(A1=11;11;IF(REST(A1;9)=0;“9”;REST(A1;9)))
    I have the same question in this link
    https://www.excelguru.ca/forums/showthread.php?8749-Sum-of-numbers-of-same-cell-and-the-result-will-be-0-to-9-or-11-22-33-or-44
    and in
    https://www.mrexcel.com/forum/excel-...2-33-44-a.html
    Thanks.
    Best regards
    Last edited by AliGW; 01-24-2018 at 02:20 AM. Reason: because the rules I have to follow

  2. #2
    Registered User
    Join Date
    01-29-2009
    Location
    Berkshire, England
    MS-Off Ver
    For Office 365
    Posts
    57

    Re: Sum of numbers of sam cell and teh result will be 0 to 9 or 11, 22, 33 or 44

    *Deleted*
    Misread question
    Last edited by buzzbee; 01-18-2018 at 11:23 AM. Reason: Misread question

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sum of numbers of same cell and the result will be 0 to 9 or 11, 22, 33 or 44

    It looks like you've supplied the links.

    Try this


    A
    B
    C
    1
    9996
    33
    In B1: =SUMPRODUCT(--MID(A1;ROW(INDIRECT("1:"&LEN(A1)));1))
    2
    23564
    20
    3
    911
    11
    Last edited by FlameRetired; 01-23-2018 at 08:12 PM.
    Dave

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Sum of numbers of same cell and the result will be 0 to 9 or 11, 22, 33 or 44

    Try this ...

    =IF(A1=0,0,IF(OR(SUMPRODUCT(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))={11,22,33,44}),
    SUMPRODUCT(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),MOD(A1-1,9)+1))

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum of numbers of same cell and the result will be 0 to 9 or 11, 22, 33 or 44

    Here is a non-volatile formula
    Enter in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 9996 33
    2 23566 22
    3 911 11
    4 596969 44
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] If the IF function result is false then check the next cell until get a true result
    By Beag air Bheag in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-10-2017, 08:55 AM
  2. Help with the result when I multiplying two numbers???
    By esopi in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 07-27-2016, 05:57 AM
  3. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  4. Disable Solver Result Dialog Box & Display Result in Cell
    By yauchildchew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2010, 01:46 PM
  5. IF function gives unexpected result with different cell numbers
    By RICHMOND in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-31-2008, 06:58 AM
  6. Advanced formula - Return result & Show Cell Reference of result
    By Irv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2006, 10:40 PM
  7. [SOLVED] How do i get only whole numbers for a formula result?
    By mkirkley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2005, 01:05 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