Hi, First post here - please be gentle!
I've got some VBA code that outputs some results as follows into an Excel sheet:
Name Class Grade Grade total
John Biology 80
John Biology 76
John Maths 65
John Maths 54
Charles Biology 23
Charles Maths 45
etc etc
What I want to do is write some code that will calculate the grade totals and output them to the grade total column. If we take John and Biology as an example, I need the logic to be able to put "80" in the grade total for the first "John, Biology" row, and "156" in the second occurrence of the "John, Biology" row - that is, 80 + 76.
If anyone can give me a pointer that would be great!
Cheers
I've got some VBA code that outputs some results as follows into an Excel sheet:
Name Class Grade Grade total
John Biology 80
John Biology 76
John Maths 65
John Maths 54
Charles Biology 23
Charles Maths 45
etc etc
What I want to do is write some code that will calculate the grade totals and output them to the grade total column. If we take John and Biology as an example, I need the logic to be able to put "80" in the grade total for the first "John, Biology" row, and "156" in the second occurrence of the "John, Biology" row - that is, 80 + 76.
If anyone can give me a pointer that would be great!
Cheers