How do I use excel to add up the best 5 numbers in a sequence?

T

Tas

I am running a spreadsheet where I need to add up the 12 best numbers from a
sequence of 19, running across. Does anyone have any idea how I can do this?

Thanks

Jon
 
K

Ken Wright

What is 'best'

Assuming it is largest, then

=SUM(LARGE($A$1:$A$30,{1,2,3,4,5}))

or if smaller is better

=SUM(SMALL($A$1:$A$30,{1,2,3,4,5}))

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :)
------------------------------­------------------------------­----------------
 
J

JE McGimpsey

Do you want 5 (your subject) or 12 (the body of your message)??

What makes the numbers "best"? Largest? Smallest? Something else?

If Largest:

=SUM(LARGE(rng,{1,2,3,4,5,6,7,8,9,10,11,12}))

or, equivalently (but array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=SUM(LARGE(rng,ROW(INDIRECT("1:12"))))

For smallest, see SMALL() in Help.
 
S

swatsp0p

As an FYI to the OP... using Large will count duplicate entries as
separate entries.

Example:
---A-B-C-D-E
1]8,8,8,7,6

=SUM(LARGE(A1:E1,{1,2,3})) will return 24 not 21 as you may expect. 8
is not only the #1 Large number, it is also the #2 and #3 Large
number.


HTH

Bruce
 
K

Ken Wright

LOL - Cheers Tom, shows how much of the note I read :)

Regards
Ken....................
 

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