I've seen similar topics posted but haven't found an answer to my specific question. I have a data set that includes a set of variables as columns and each variable has a corresponding column that's an average of that variable by geography (example dataset attached).
What I want to do is create a new column for each variable which divides the variable by the corresponding variable average. My input will be dynamic in terms of the number of variables, so I can't set this up as a one time formula tool. but the naming convention will be consistent and thus each variable will have only one field in which the right 3 characters of the field name match, as there will always be less than 1,000 variables.
So I was thinking a possible approach would be a formula or loop that matches fields based on the right 3 characters of the field name and divides the first field by the second. But I can't figure out how to actual do this.
All advice/suggestions will be appreciated!
Justin