+ Reply to Thread
Results 1 to 3 of 3

Sum until number reached, then return number and keep on summing until nr reached again

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    1

    Sum until number reached, then return number and keep on summing until nr reached again

    i Have a set of numbers. i want excel to sum numbers in the row until a certain number (A) is reached (it shouldn't be the exact number, it can be 5 more). when this number (A) is reached, excel should return the value of the sum (in the next column) and start summing again (where it stopped) until the number (A) is reached again and again return the value and repeat this step. For example i want excel to sum until 25, it sums the numbers in the row until it reaches any number between 25 and 30 and returns this number and starts summing the next numbers in the row until it reaches between 20 and 25 again..

    If a number in the row is 15 more than the specified number (A), excel should return the value and then continue to sum from the next number in the row. For example (continued from the previous example) if the number in the row is 40 or more, then excel should just return the number and start summing from the next number in the row....

    Attached is an example of what i want.

    Can anyone please help?? Would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Sum until number reached, then return number and keep on summing until nr reached agai

    Enter in cell B5...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ... and copy or fill down.

    Note the formula will return 29 at bottom because it is the end of data, not because it meets the criteria.

  3. #3
    Forum Contributor rajeshturaha's Avatar
    Join Date
    08-22-2012
    Location
    Assam, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    236

    Re: Sum until number reached, then return number and keep on summing until nr reached agai

    Great That work for me too
    Rgd
    RT
    If my answer(s) helped you, please add me reputation by click on *

+ 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] Character Count Until a Number is Reached
    By HangMan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2012, 09:48 AM
  2. setting an set number of 41 and having it reset to 0 once 41 is reached
    By the_spc_four82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2011, 03:50 PM
  3. Archive records once a certain number has been reached
    By gelandl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2009, 10:40 AM
  4. Insert columns until a certain number has been reached
    By moglione1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2006, 06:45 AM
  5. Replies: 3
    Last Post: 12-06-2005, 09:35 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