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!
Solved! Go to Solution.
Yes! No macro required!
You will transpose the data and keep the "static" data as keys. Then you'll use a formula that groups by ID (I checked the wrong box in my configuration in the picture, but fixed it in the post). I created a formula near yours and called it new_value. Then I used the crosstab tool to horizontally view the data.
There is a version 10.x and a version 11 sample for you to work from.
Cheers,
Mark
This works perfect, thank you Mark!