+ Reply to Thread
Results 1 to 5 of 5

add numbers until value reached

  1. #1
    Registered User
    Join Date
    02-25-2010
    Location
    Idaho
    MS-Off Ver
    Excel 2003
    Posts
    2

    add numbers until value reached

    I need help writing a formula to add a column of numbers until a value is reached, then start over adding numbers starting at the next cell after the value is reached.

    Thanks for any help.

    45Romeo
    Last edited by 45romeo; 02-25-2010 at 05:17 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: add numbers until value reached

    Assuming you are starting in row 2, say A2, and B1 is an empty cell, then in B2, try something like:

    =IF(B1+A2>1000,A2,B1+A2)

    copied down

    where 1000 is your threshold
    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
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: add numbers until value reached

    Edit: Removed comments about VBA in light of NBVC's suggested solution.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    02-25-2010
    Location
    Idaho
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: add numbers until value reached

    Thats it--Thanks
    Last edited by 45romeo; 02-25-2010 at 05:15 PM. Reason: made a mistake

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

    Re: add numbers until value reached

    Isn't that what it is doing?

    See attached.
    Attached Files Attached Files

+ 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