I am trying to dynamically add a large number of fields (>150) that references the field previous (as well as two static fields) for the calculation. For example, in the following table, each consecutive field is calculated based on the previous until the min is reached, at which point it goes back to max.
| | Rate | Max | Min | M 1 | M 2 | M 3 |
| #1 | 0.1 | 10 | 2 | 9.9 | 9.8 | 9.7 |
| #2 | 0.5 | 4 | 3 | 3.5 | 3.0 | 4.0 |
| #3 | 1 | 6 | 2 | 5 | 4 | 3 |
Is there a way to do this dynamically where each field references the field previous rather than typing in each formula? Additionally, can it be done where the appended range is dynamic (i.e. can do M1-M10 or M1-M100)?
Thanks!