Forum Discussion
Emilia_Emcke
Nov 02, 2022Copper Contributor
Count If statement - refer to label name on separate sheet
Hey! I'm trying to create a count if statement that counts all cells in a column on a different sheet with values greater than 4. I need to refer to the column by name, not simply by the array of cel...
- Nov 02, 2022
=SUMPRODUCT((sheet2!$A$1:$I$1="header 2")*(sheet2!$A$2:$I$23>4))You can try this formula.
This is "sheet2":
The formula returns the number of cells from "sheet2" that are under "header 2" and have a value greater 4.
Emilia_Emcke
Nov 06, 2022Copper Contributor
Is this returning the average of those scores? Would you not have to include some average calculation?
HansVogelaar
Nov 06, 2022MVP
Sorry, I meant AVERAGEIFS instead of COUNTIFS. I have edited my previous reply.
- HansVogelaarNov 08, 2022MVP
See the version attached below.
I had to remove the trailing space from the end of some of the values. "Hardware" and "Hardware " don't match.
- HansVogelaarNov 08, 2022MVP
See my reply to your private message.
- Emilia_EmckeNov 08, 2022Copper ContributorHey Hans, you were such a great help with my last problem and wondering if you could help out again. I have two sheets one sheet with subjects and avg. scores for each year. For each subject on one sheet, I want to index the scores depending on the teacher. So if the row's match across the two different sheets (Math), and the teacher is Smith, then index the score for math in 2022.
Teacher 2019 2020 2021 2022
Math Smith 98 87 67 100
English Allen 81 54 32 78
Spanish Allen 76 85 90 91
Biology Smith 68 67 29 59 - Emilia_EmckeNov 07, 2022Copper Contributor
Thank you so much for your help HansVogelaar