Closed Thread
Results 1 to 6 of 6

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

  1. #1
    Tas
    Guest

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

    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

  2. #2
    Ken Wright
    Guest

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

    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 :-)
    ------------------------------*------------------------------*----------------



    "Tas" <[email protected]> wrote in message
    news:[email protected]...
    >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




  3. #3
    JE McGimpsey
    Guest

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

    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.


    In article <[email protected]>,
    Tas <[email protected]> wrote:

    > 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?


  4. #4
    Tom Ogilvy
    Guest

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

    It was a trick Ken. He said 5 in the subject, but 12 in the body.

    --
    Regards,
    Tom Ogilvy


    "Ken Wright" <[email protected]> wrote in message
    news:[email protected]...
    > 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 :-)
    > ------------------------------*------------------------------*------------

    ----
    >
    >
    >
    > "Tas" <[email protected]> wrote in message
    > news:[email protected]...
    > >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

    >
    >




  5. #5
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    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
    Bruce
    The older I get, the better I used to be.
    USA

  6. #6
    Ken Wright
    Guest

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

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

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


    "Tom Ogilvy" <[email protected]> wrote in message
    news:[email protected]...
    > It was a trick Ken. He said 5 in the subject, but 12 in the body.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Ken Wright" <[email protected]> wrote in message
    > news:[email protected]...
    >> 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 :-)
    >> ------------------------------*------------------------------*------------

    > ----
    >>
    >>
    >>
    >> "Tas" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >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

    >>
    >>

    >
    >




Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1