Forum Discussion
Cyn_TechnoMom
Feb 07, 2024Copper Contributor
Use a conditional value in a formula?
I need to create a formula to get the average of 11 discontiguous cells. If there's a negative value in one of those cells, though, it should be dropped. Is this possible? Can it be done without...
OliverScheurich
Feb 07, 2024Gold Contributor
=AVERAGE(FILTER(TOCOL(A2:E13,1),TOCOL(A2:E13,1)>0))
With Office 365 or Excel for the web this formula works in my example.
Cyn_TechnoMom
Feb 07, 2024Copper Contributor
Thanks so much! I'll try that right away.