+ Reply to Thread
Results 1 to 7 of 7

Total of top 5 cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-04-2008
    Location
    Chelmsford, MA
    Posts
    4

    Total of top 5 cells

    I hope I can find some help here. I'm trying to add the top five values in a column of about 15 entries. They will not be in any special order and sorting them in order is not an option.

    Thanks
    Bob
    New guy to the forum.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Is this what you want?

    =LARGE($A$1:$A$15,1)
    =LARGE($A$1:$A$15,2)
    =LARGE($A$1:$A$15,3)
    =LARGE($A$1:$A$15,4)
    =LARGE($A$1:$A$15,5)

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    If you'd like to SUM the five largest values in a range, try:

    =SUM(LARGE(A1:A15,{1,2,3,4,5}))

  4. #4
    Registered User
    Join Date
    09-04-2008
    Location
    Chelmsford, MA
    Posts
    4
    Thank you, in less than 10 minutes I have my answer. I appreciate the quick help.

    Thanks
    Bob
    Chelmsford, MA

  5. #5
    Registered User
    Join Date
    09-04-2008
    Location
    Chelmsford, MA
    Posts
    4

    Added question to my original.

    The formula that Paul supplied =SUM(LARGE(A1:A15,{1,2,3,4,5})) works great for me. Now I am wondering if it can be modified to either display zero as a result if there is less than 5 entries in the column or just an empty cell as a result.

    Thanks
    Bob

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi Bob,

    You can probably adjust the formula to:

    =IF(COUNT(A1:A100)<5,0,SUM(LARGE(A1:A100,{1,2,3,4,5})))

  7. #7
    Registered User
    Join Date
    09-04-2008
    Location
    Chelmsford, MA
    Posts
    4
    Paul
    Thanks again for your help, it works great. This is a great forum.

    Bob
    Chelmsford, MA

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. sorting merged cells
    By Bope in forum Excel General
    Replies: 0
    Last Post: 04-07-2008, 11:56 AM
  2. Calculating percentages-how to ignore blank cells?
    By lemoineer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2008, 08:46 PM
  3. Copy Unmerged cells to Merged Cells
    By jnmturner in forum Excel General
    Replies: 4
    Last Post: 03-20-2008, 11:32 AM
  4. How do I keep a running total?
    By kdraper in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2007, 03:00 PM
  5. searching merged cells
    By chris_mayer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-30-2006, 11:14 AM

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