average for each day

toony

New member
Joined
Mar 6, 2014
Messages
49
Reaction score
0
Points
0
Location
UK
Excel Version(s)
Excel 2016
How to calculate the average of a range day by day? A is the column for the day, and the average should go at the top of each day. I’ve done the countif but it brings results in every cell other than at the top of each day;


=IF(COUNTIF(A2192:A2192,A2192)=1,AVERAGE(BJ2193:$BJ$10000))

Many thanks
 

Bob Phillips

Super Moderator
Staff member
Joined
Mar 21, 2011
Messages
1,942
Reaction score
0
Points
36
Excel Version(s)
O365
How about this array formula

=AVERAGE(IF(A2193:$A$10000=A219,BJ2193:$BJ$10000))
 
Top