LARGE

F

Fesk

Hi
I'm using the following function to sum the best 14 numbers from 16.

=SUM(LARGE(B20:Q20,{1,2,3,4,5,6,7,8,9,10,11,12,13,14}))

My problem is if there are less than 14 numbers the function comes up with
'#NUM'

Any help would be appreciated.
Thanks
Fesk
 
M

Mike H

Try,

=SUM(LARGE(B20:Q20,ROW(INDIRECT("1:"&MIN(COUNT(B20:Q20),14)))))

'This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.


Mike
 
M

Mike H

I should have added an equivalent of your formula without the less than 14
numbers issue is this. Still an array but a bit less unweildy

=SUM(LARGE(B20:Q20,ROW(INDIRECT("1:14"))))

Mike
 

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