I'm quite new to the Macro function in Excel.
I'm working with a table with a dynamic number of columns, and while some of the calculations I can do manually in Excel, I'm trying to figure out how to automate this in VBA.
The number of columns between column G (Achieved) and P (Total % Class) may differ, but the calculations will be about the same.
I am hoping to use the Table[Header] to specify where to calculate, perhaps whichever column is on the right of 'Achieved' and left of 'Total % Class'
Total % Class:
= SUM all classes except Unclassed
Total % at Higher Class:
= SUM Class_1, Class_2, Class_2F and Class_2P together
Some of these Classes won't always appear in the data, if any one these are missing it will return a #REF error for 'Total % Class' and 'Total % at Higher Class', so I'm hoping to bypass this.
Here's a screengrab of the data, showing all the classes.
