Assistance with Averageif formula

Options
edited 01/30/24

Hello,

The formula below was working great until I was asked to add a new requirment where I need to exclude values that are greater than 14 . Otherwise the average is incorrect if greater then 14 "cells" are included. I tried the Averageifs but got lost trying to figure it out so here is my original formulas sans the new requirment. Thanks you for help!

=ROUND(AVERAGEIF([Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], >0, [Turnaround Requestor to CSM]:[Turnaround Requestor to CSM]))

Tags:

• ✭✭✭✭✭✭
Options

I would recommend using a AVG(COLLECT formula, which will allow you to keep adding conditions for your avg formula as you see fit. Try this...

=ROUND(AVG(COLLECT([Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], [Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], >0, [Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], NOT(ISBLANK(@cell)))))

Hope this helps!:)

• Options

Thanks Brian. I edited my post when you were probably responding. I changed my criteria to greater then 0 but not greater then 14. so basically 1 -14.

So with this edit it would look like this:

=ROUND(AVG(COLLECT([Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], [Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], >0, [Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], <15)))))

Going to give it a try.

• Options

I tried to following and I am getting the #UNPARSEABLE error.

=ROUND(AVG(COLLECT([Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], [Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], >0, [Turnaround Requestor to CSM]:[Turnaround Requestor to CSM], <15)))))

I am new to Avg(Collect) so I must be doing something wrong.

• Options

TOO many ))!!!

Working like a charm. Thanks for introducing me to AVG(COLLECT).