Running Total Reset after Threshold

blind12

New Member
Joined
Mar 20, 2024
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
I need a formula that resets after a certain threshold is met on a running total. So example: when the number in A3 is reached in the running total of C1:M1, then $A3$ is placed in C3:M3. in the screen shot I show this example by listing A3 in the cells that this would take place in.

1710989376777.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How about this?
Book2
ABCDEFGHIJKLM
1300315331347365383402422443465489
2Unit Min Order Qty
31000 100010001000
Sheet1
Cell Formulas
RangeFormula
C3:M3C3=IF((SCAN(0,C1:M1,LAMBDA(a,b,LET(c,a+b,IF(c<=A3,c,0))))=0)*(C1:M1<>0),A3,"")
Dynamic array formulas.
 
Last edited:
Upvote 0
How about this?
Book2
ABCDEFGHIJKLM
1300315331347365383402422443465489
2Unit Min Order Qty
31000 100010001000
Sheet1
Cell Formulas
RangeFormula
C3:M3C3=IF((SCAN(0,C1:M1,LAMBDA(a,b,LET(c,a+b,IF(c<=A3,c,0))))=0)*(C1:M1<>0),A3,"")
Dynamic array formulas.
thank you so much!!! I really appreciate it!
 
Upvote 0
Change the inequality "<=" to "<". This will account for when the sum is exactly 1000.
 
Upvote 0

Forum statistics

Threads
1,223,920
Messages
6,175,377
Members
452,638
Latest member
Oluwabukunmi

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