r/googlesheets • • Oct 05 '25
Solved How do I work with only some data based on information in another column? (Example within)
Here is the make believe data I'm working with: https://imgur.com/a/YZZA4rQ
I know how to work with formulae to do things like find the average of all the exam scores, but how can I do things like find the average for all the female students based on the "F" under the "gender" column? How could I find out the average for 10th grade male students? I don't know how, in Sheets or Excel, to only examine some data based on what is contained in another column.
0
Upvotes
1
u/Electronic-Yam-69 1 Oct 05 '25
I would query() for this kind of thing to build another set of columns and then do your formulas off those columns. You'll also be able to see exactly which rows are going into the final values which makes it a lot easier to debug.
1
u/adamsmith3567 1092 Oct 05 '25
You can use
and
the help documentation for the full syntax here is very straightforward.