Need some help on a formula please

B

Bob Smith

Cells K5 through K12 have 8 game scores. Best 6 scores are counted. I'm
trying to remove the two worst scores and do an average on the remaining
six, and keep coming up with error messages.

Last formula I tried that didn't work was
=AVERAGE(K5:K12)-SUM(SMALL(K5:K12,{1,2}))

Any help that you can provide is greatly appreciated :)

TIA,

Bob
 
B

Biff

Hi!

This assumes that there will be at least 6 scores and the "best" scores are
the highest scores:

=AVERAGE(LARGE(K5:K12,{1,2,3,4,5,6}))

Biff
 
B

Bob Phillips

=AVERAGE(IF(K5:K12=LARGE(K5:K12,{1,2,3,4,5,6}),K5:K12))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 
B

Bob Phillips

Mine was a bit of overkill as Biff showed. If there may be less than 6
values, use

=AVERAGE(LARGE(K5:K12,ROW(INDIRECT("1:"&MIN(6,COUNT(K5:K12))))))

still an array formula

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top