+ Reply to Thread
Results 1 to 10 of 10

Every Certain Sum I want to Reset My Cells - Need Equation

Hybrid View

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    42

    Every Certain Sum I want to Reset My Cells - Need Equation

    I want to have a comlumn of every 22 products being made and what is being left over.

    Attached is the file.

    THANK YOU.
    Attached Files Attached Files

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,308

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    Possibly...

    =IF(SUM($C$2:C2)>=22,INT(SUM($C$2:C2)/22) & " - " & MOD(SUM($C$2:C2),22),"")

    in D2 and copy down.

  3. #3
    Registered User
    Join Date
    06-25-2012
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    god bless you and your excel skills!

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,308

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    Thank you. Glad it helped.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    @neelpatel

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself.
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    06-25-2012
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    dangelor: Is there a way to seperate both the numbers into two different cells?

    cutter: I apologize, next time I will.

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,308

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    Try placing this in D2....
    =IF(SUM($C$2:C2)>=22,INT(SUM($C$2:C2)/22,"")

    and this in E2...
    =IF(SUM($C$2:C2)>=22,MOD(SUM($C$2:C2),22),"")

    then copy down.

  8. #8
    Registered User
    Join Date
    06-25-2012
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    Dangelor: I used the first equation you gave me, but for every 20 units, I am getting a different end point (which is calculated). For this specific file (attached), I should end at C3 (around 20 units). Your equation makes it end at C24 where the SUM is around 39. Any help this?

    Thanks again.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-25-2012
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    For some reason, I try to change the equation number from 22 to 12 and it doesn't seem to start adding up from the beginning. Would anyone know what the problem is with the equation? Thank you.

  10. #10
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,308

    Re: Every Certain Sum I want to Reset My Cells - Need Equation

    With the formula as written, you are trying to subtract nothing ("") from nothing (""). Try replacing the "" with a zero.

    =IF(SUM(C$2:$C3)>=20,INT(SUM(C$2:$C3)/20),0)- IF(SUM(C$2:$C2)>=20,INT(SUM(C$2:$C2)/20),0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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