Incremental summing to reset when a value is realised

MAR17A

New Member
Joined
Aug 18, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,

First time user!

I have tried a lot of formulae, however am still stuck on this. I need a formula that sum incrementally, however resets once 0 (column H) is identified.

1) I am currently using =IF(H2>0,SUM(H2:INDEX(H:H,MATCH(TRUE,(H:H<>0),0))),"") (column K), and this works to a certain point, however it doesn't reset when 0 is identified in column H. See image.

2) I also need a formula for identifying when column H (No of increments, exceed 24, sequentially)

Any assistance is appreciated.

Cheers,
MAR17A
 

Attachments

  • Screenshot 2022-08-31 095855.png
    Screenshot 2022-08-31 095855.png
    37.6 KB · Views: 8

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Is it?
Code:
=IF(H2=0,"",SUM(INDEX(H2:OFFSET($H$1,LOOKUP(2,1/($H$1:H1=0),ROW($H$1:H1)),),)))
 
Upvote 0
=IF(H2=0,"",SUM(INDEX(H2:OFFSET($H$1,LOOKUP(2,1/($H$1:H1=0),ROW($H$1:H1)),),)))
Unfortunately no, this just gave me the reverse of what I already have in column k. See column L.
 

Attachments

  • Screenshot 2022-08-31 141630.png
    Screenshot 2022-08-31 141630.png
    41.9 KB · Views: 5
Upvote 0
Try this

22 08 31.xlsm
HK
1No of IncrementsIncremental Running total
211
323
436
5410
60 
711
823
90 
1011
Reset sum
Cell Formulas
RangeFormula
K2:K10K2=IF(H2=0,"",H2+N(K1))
 
Upvote 0
Try this
Try this

22 08 31.xlsm
HK
1No of IncrementsIncremental Running total
211
323
436
5410
60 
711
823
90 
1011
Reset sum
Cell Formulas
RangeFormula
K2:K10K2=IF(H2=0,"",H2+N(K1))

22 08 31.xlsm
HK
1No of IncrementsIncremental Running total
211
323
436
5410
60 
711
823
90 
1011
Reset sum
Cell Formulas
RangeFormula
K2:K10K2=IF(H2=0,"",H2+N(K1))

Make sure you place the formula in L2 then drag down.
Thank you beboo021999, I did this.
 
Upvote 0
Thank you beboo021999, I did this.
Thank you Peter _SSs, this seemed to work or given me a result I can work with.

Are you able to solve my number 2 question. I need a formula to display a result when incrementally or sequentially, it reaches or exceeds a number. For example, using mine (or what you have returned) I want to place a number or text say "PP" when column K equals or is > 10 sequentially, otherwise leave ""? I have been staring at it too long and know that it is not that complex.
 
Upvote 0
Thank you Peter _SSs, this seemed to work or given me a result I can work with.
You're welcome. Thanks for the confirmation.

Are you able to solve my number 2 question.
Could you show us some sample data and expected results as I'm not certain that I fully understand.
Even better if you could use XL2BB
 
Upvote 0
You're welcome. Thanks for the confirmation.


Could you show us some sample data and expected results as I'm not certain that I fully understand.
Even better if you could use XL2BB
Thanks Peter_SSs, but I have solved it and that is thanks to you solving my first one. Cheers, M
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top