Average with a Criteria

I am looking to generate the average age of graduate students for each year. What was the average age of the student body for class of 2022 for example?


How do I do this? I tried this:

=AVERAGEIF({Students Range 6},, {Students Range 5}, "2022")


Student range 6 are the list of ages. Student range 5 is the academic year/class. It is saying #UNPARSEABLE.

Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    The error is coming from the extra comma after the first range.


    You will still need to rearrange the pieces a bit though to have the correct syntax.

    =AVERAGEIF({Students Range 5}, "2022", {Students Range 6})

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!