How would I write a function that will count the number of tests taken and if it is 5 subtract the lowest score and then average the remaining 4? If only 4 tests then the lowest is not subtracted.
How would I write a function that will count the number of tests taken and if it is 5 subtract the lowest score and then average the remaining 4? If only 4 tests then the lowest is not subtracted.
You did not indicate what you want to happen if there are other than 4 or 5
tests, but to average the highest four scores:
=AVERAGE(LARGE(rng,{1,2,3,4}))
where rng is a reference to your five potential cells.
This formula will return an error if there are not at least four scores, and
will average the highest four no matter how many scores are present.
--ron
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.