Good morning to everyone,
I have the following situation:
col i = date (array formula)
col l = profit (array formula)
col k = aggregate profit (array formula)
col z = running max for col i (between 0 and running max), stop and restart when date change.
Like this:

Before Excel introduced array formulas I had solved it with the following formula:
=MAX(0;MAXIFS($V$8:V8;$T$8:T8;I8))
with the vba completing the entire column.
After Excel introduced array formulas I had solved it with the following formula:
=MAP(i1#;k1#;LAMBDA(DATA;NET;MAX(0;MAXIFS($k$1:NET;$i$1:DATA;DATA))))
This solution works, it spill the result for the entire column and the calculations are correct, however on 10,000 lines it is slow.
The question I would like to ask to anyone who wants to answer is the following: is there a faster way, in Excel formula or VBA, to perform this operation?
Thank you all so much, I wish you a good day.
Dario
P.S. I read a lot of answer for MAXIFS in this community but there are no answer for "spill" MAXIFS. Thank you again

A Running Max: Spill MAXIFS Using SCAN Instead