Hi,
Can you please help me to create a small macro to calculate % in the background and then do a summation on the sheet. Let me explain further.
I have 10 pupils and they wrote 3 tests. I must now calculate the results and report on how they did per test. There are 4 results brackets and I need to say how many pupils are within each bracket.
Here is my spreadsheet
[TABLE="width: 274"]
<colgroup><col width="143" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5091;"> <col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1678;" span="2"> <col width="48" style="width: 36pt; mso-width-source: userset; mso-width-alt: 1706;"> <col width="82" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2901;"> <tbody>[TR]
[TD="width: 143, bgcolor: transparent"]Grade 5
[/TD]
[TD="width: 47, bgcolor: transparent"]Test 1
20 points[/TD]
[TD="width: 47, bgcolor: transparent"]Test 2
10 points[/TD]
[TD="width: 48, bgcolor: transparent"]Test 3
15 points[/TD]
[TD="width: 82, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="width: 47, bgcolor: #D9D9D9"]Pupils points[/TD]
[TD="width: 47, bgcolor: #D9D9D9"]Pupils points[/TD]
[TD="width: 48, bgcolor: #D9D9D9"]Pupils points[/TD]
[TD="width: 82, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 1 [/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"]5.00[/TD]
[TD="bgcolor: transparent"]8.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 2[/TD]
[TD="bgcolor: transparent"]2.00[/TD]
[TD="bgcolor: transparent"]4.00[/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 3[/TD]
[TD="bgcolor: transparent"]10.00[/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"]9.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 4[/TD]
[TD="bgcolor: transparent"]15.00[/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"]12.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 5[/TD]
[TD="bgcolor: transparent"]12.50[/TD]
[TD="bgcolor: transparent"]5.00[/TD]
[TD="bgcolor: transparent"]10.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 6[/TD]
[TD="bgcolor: transparent"]9.00[/TD]
[TD="bgcolor: transparent"]5.50[/TD]
[TD="bgcolor: transparent"]11.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 7[/TD]
[TD="bgcolor: transparent"]12.00[/TD]
[TD="bgcolor: transparent"]5.50[/TD]
[TD="bgcolor: transparent"]11.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 8[/TD]
[TD="bgcolor: transparent"]17.00[/TD]
[TD="bgcolor: transparent"]8.00[/TD]
[TD="bgcolor: transparent"]14.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 9[/TD]
[TD="bgcolor: transparent"]11.00[/TD]
[TD="bgcolor: transparent"]3.50[/TD]
[TD="bgcolor: transparent"]7.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 10[/TD]
[TD="bgcolor: transparent"]16.00[/TD]
[TD="bgcolor: transparent"]7.00[/TD]
[TD="bgcolor: transparent"]13.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #00B0F0"]below 40[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: yellow"]from 40 to 60[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #92D050"]from 60.5 to 80[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: fuchsia"]above 80[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
Thank you
Andre
Can you please help me to create a small macro to calculate % in the background and then do a summation on the sheet. Let me explain further.
I have 10 pupils and they wrote 3 tests. I must now calculate the results and report on how they did per test. There are 4 results brackets and I need to say how many pupils are within each bracket.
Here is my spreadsheet
[TABLE="width: 274"]
<colgroup><col width="143" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5091;"> <col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1678;" span="2"> <col width="48" style="width: 36pt; mso-width-source: userset; mso-width-alt: 1706;"> <col width="82" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2901;"> <tbody>[TR]
[TD="width: 143, bgcolor: transparent"]Grade 5
[/TD]
[TD="width: 47, bgcolor: transparent"]Test 1
20 points[/TD]
[TD="width: 47, bgcolor: transparent"]Test 2
10 points[/TD]
[TD="width: 48, bgcolor: transparent"]Test 3
15 points[/TD]
[TD="width: 82, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="width: 47, bgcolor: #D9D9D9"]Pupils points[/TD]
[TD="width: 47, bgcolor: #D9D9D9"]Pupils points[/TD]
[TD="width: 48, bgcolor: #D9D9D9"]Pupils points[/TD]
[TD="width: 82, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 1 [/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"]5.00[/TD]
[TD="bgcolor: transparent"]8.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 2[/TD]
[TD="bgcolor: transparent"]2.00[/TD]
[TD="bgcolor: transparent"]4.00[/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 3[/TD]
[TD="bgcolor: transparent"]10.00[/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"]9.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 4[/TD]
[TD="bgcolor: transparent"]15.00[/TD]
[TD="bgcolor: transparent"]6.00[/TD]
[TD="bgcolor: transparent"]12.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 5[/TD]
[TD="bgcolor: transparent"]12.50[/TD]
[TD="bgcolor: transparent"]5.00[/TD]
[TD="bgcolor: transparent"]10.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 6[/TD]
[TD="bgcolor: transparent"]9.00[/TD]
[TD="bgcolor: transparent"]5.50[/TD]
[TD="bgcolor: transparent"]11.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 7[/TD]
[TD="bgcolor: transparent"]12.00[/TD]
[TD="bgcolor: transparent"]5.50[/TD]
[TD="bgcolor: transparent"]11.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 8[/TD]
[TD="bgcolor: transparent"]17.00[/TD]
[TD="bgcolor: transparent"]8.00[/TD]
[TD="bgcolor: transparent"]14.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 9[/TD]
[TD="bgcolor: transparent"]11.00[/TD]
[TD="bgcolor: transparent"]3.50[/TD]
[TD="bgcolor: transparent"]7.50[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Pupil 10[/TD]
[TD="bgcolor: transparent"]16.00[/TD]
[TD="bgcolor: transparent"]7.00[/TD]
[TD="bgcolor: transparent"]13.00[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #00B0F0"]below 40[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: yellow"]from 40 to 60[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #92D050"]from 60.5 to 80[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: fuchsia"]above 80[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
Thank you
Andre