• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sum up a range of cells but to stop when it reaches to an amount

yanaloo2002@

New Member
How to set Excel formula to sum up a range of cells but to stop when it reaches to an amount equal to another particular cell.
 
If you are summing up a column until you get to a value a simple If can do that job

Col A: your data

C1 is your max value

B2: =IF(MAX($B$1:B1)+A2>$C$1,"",B1+A2)

copy down


If you want to select cells in a range that sum to a value, have a read of this where it was comprehensively covered

http://www.dailydoseofexcel.com/archives/2005/10/27/which-numbers-sum-to-target/
 
Back
Top