By: Afrina Nafisa

In reply to gianluca.

Hello Gianluca,

Hope you are doing well. Thank you for your query. Well, I can see two columns here and you need to get the running maximum of the values using a dynamic array. Therefore, you can use the MAX function to get the running maximum from the dataset. You may follow the below image to use the MAX function as an array function. If you use the total column in the formula as below then the formula will work like an array formula. You can add or change any value within the range and the running maximum value will change according to your dataset.

[wpsm_box type="green" float="none" textalign="center"]
=MAX($B:$B,$C:$C)
[/wpsm_box]

Here, if add another column then the formula adds the values in the range and changes the output as below.