Hello!
I've been going at it all morning and I cant seem to find the right solution.
I have a big table shown below that will keep expanding on the right (as new dates are added) and downwards (as new addresses are added).
Now i need a code for a macros, or a formulas that would select all the score on the right of a certain Municipality ( Alma in this example ) that would select all the score on the right of Alma (to make an average of the current scores & ignore empty cells), and would keep doing so as the table expands without having to reconfigure the formula every time.
BlueArchive.PNG
The average I'm looking for Alma is simply =AVERAGE(E6:I22) but this table will be expanding over the next years and will contain more and more Municipalities, and i was also hoping to tweak that same code to find work the Averages of the Streets. (Some Municipalities have the same Street names)
This is kinda what I'm going for :
MunAvg.PNG
Where the list was auto generated with the advance filter and the average would show on its side.
Should i use formulas or would it be better to use a VBA macro?
What would the code generally look like?
Thanks,
Jeremie
I've been going at it all morning and I cant seem to find the right solution.
I have a big table shown below that will keep expanding on the right (as new dates are added) and downwards (as new addresses are added).
Now i need a code for a macros, or a formulas that would select all the score on the right of a certain Municipality ( Alma in this example ) that would select all the score on the right of Alma (to make an average of the current scores & ignore empty cells), and would keep doing so as the table expands without having to reconfigure the formula every time.
BlueArchive.PNG
The average I'm looking for Alma is simply =AVERAGE(E6:I22) but this table will be expanding over the next years and will contain more and more Municipalities, and i was also hoping to tweak that same code to find work the Averages of the Streets. (Some Municipalities have the same Street names)
This is kinda what I'm going for :
MunAvg.PNG
Where the list was auto generated with the advance filter and the average would show on its side.
Should i use formulas or would it be better to use a VBA macro?
What would the code generally look like?
Thanks,
Jeremie