Good day,
I used excel to create report cards for my school. Each student's report card is on a different worksheet in the workbook.
I am now at the point where I need to count the number of As, Bs, Cs etc for each subject in the workbook. Is there a formula I could use to do this?
I have tried the following:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&$P$1:$P$42&"'!"&CELL("address",H11)),"A"))
P1:P42 - list of the sheet names
H11 - the cell where the letter grade appears (For example, all the English Language grades appear in H11 for each report card).
"A" - the letter grade being counted.
Hi,
Am Mon, 27 Jun 2022 14:46:05 +0200 schrieb Claus Busch:
try:sorry, wrong range.
=SUMPRODUCT(COUNTIF(INDIRECT("'"&P1:P4&"'!H11"),"A"))
Try:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&P1:P42&"'!H11"),"A"))
Regards
Claus B.
--
Windows10
Microsoft 365 for business
try:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&P1:P4&"'!H11"),"A"))
Thank you! The formula worked for the range P1:P5 but would return #REF once I put in the full range. Is there something else I need to add or does this only work for a certain number of worksheets? I have 40 worksheets in total.
Good day,
I used excel to create report cards for my school. Each student's report card is on a different worksheet in the workbook.
I am now at the point where I need to count the number of As, Bs, Cs etc for each subject in the workbook. Is there a formula I could use to do this?
I have tried the following:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&$P$1:$P$42&"'!"&CELL("address",H11)),"A"))
P1:P42 - list of the sheet names
H11 - the cell where the letter grade appears (For example, all the English Language grades appear in H11 for each report card).
"A" - the letter grade being counted.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 298 |
Nodes: | 16 (2 / 14) |
Uptime: | 14:08:32 |
Calls: | 6,677 |
Files: | 12,219 |
Messages: | 5,340,899 |