help on AVERAGEIF formula

Joined
Sep 13, 2015
Messages
4
Reaction score
0
Points
1
I have a column of data that contains numbers from 0-500.

I would like to average the values of all numbers that fall between 60 and 242

I can average the numbers greater than 60 averageif(P2:p262, >60, P2:p262)

and the same for less than 242

I don't see how to include both <> in the same operation.
 
Joined
Nov 19, 2006
Messages
1,821
Reaction score
108
Points
63
Location
York, UK
Your Mac's Specs
iMac: 5K 27” (2020), 3.3 GHz, 32Gb RAM. iPad 2025, iPhone 13 Mini, Apple Watch SE
To aid my own knowledge I did a few searches in Google and came across this which appears very similar. If I'm wrong do please say so and I'll try harder.
 
OP
U
Joined
Sep 13, 2015
Messages
4
Reaction score
0
Points
1
Thanks Sawday - Here's what I came up with that works great

IF(SUM(P2:p356)=0,0,AVERAGEIFS(P2:p356,P2:p356,">31",P2:p356,"<242")÷30)

It calls a zero if all cells are zero and /30 to give me a monthly average
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top