 • 411K Members
• 5,867 Online
• 466K Conversations
SOLVED

Using ROUND with AVERAGE and LARGE within a formula.

This is the formula to which I would like to add ROUND so that the average is rounded up/down.  This formula averages the last 5 scores of the player, skipping the weeks that the player has not played.  In the next column, I have another formula which looks at my average  then matches it to a list of averages and corresponding handicaps.  At present, if I get an average of 48.8, it will give me the handicap for 48 rather than rounding to 49.

This formula to average the last 5 games, skipping blanks is:

=IF(COUNT(\$K\$5:K38)>=5,AVERAGE(INDEX(\$K\$5:K38,LARGE(IF(\$K\$5:K25<>"",ROW(\$K\$5:K25)-ROW(\$K\$5)+1),5)):K25),"")

Would appreciate help with how to insert ROUND as I get an error every time I try.

6 Replies

Re: Using ROUND with AVERAGE and LARGE within a formula.

=IF(COUNT(Scores)>=5,

ROUND(

AVERAGE(

INDEX(Scores, LARGE(IF(\$K\$5:K25<>"",ROW(\$K\$5:K25)-ROW(\$K\$5)+1),5)) : K25 ),

0 ),

"")

I am not sure I under the significance of K25 in a range that goes to K38?

Re: Using ROUND with AVERAGE and LARGE within a formula.

Thanks Peter. Using your changes to the formula doesn't give me an average but a blank.   The reference to K25 was due to my cursor being on that line when I copied the formula. I will try to upload my sheet for you to have a full view.

Re: Using ROUND with AVERAGE and LARGE within a formula.

I changed you formulas and so far I found no need for rounding.

Solution

Re: Using ROUND with AVERAGE and LARGE within a formula.

I hadn't realised it was a running value rather than a terminal value you are looking for.

I have implemented the AVERAGE in your workbook without adding any defined names.

Re: Using ROUND with AVERAGE and LARGE within a formula.

Thanks! It works well.

Can you explain how you got the cells in that particular column to average without having the AVERAGE formula in each cell?  I will have to implement it in 45 other worksheet.

Re: Using ROUND with AVERAGE and LARGE within a formula.

Disregard my last message, I realized that I was seeing only part of the formula.  I am very grateful for your help.

Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies