+ Reply to Thread
Results 1 to 9 of 9

Aggegate formula

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    Whitefish, Montana
    MS-Off Ver
    Excel 2011 for mac
    Posts
    16

    Aggegate formula

    Aggegate formula not giving sum of lowest 5 cells when there are more than 5 cells that are equal. How do I make G2 equal the lowest 5 cells from column D when all from that team have the same score? G2 should equal 4.5


    help_file.xlsx
    Last edited by mbsmeltzer; 08-31-2015 at 03:19 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Aggegate formula

    Use this formula to get SUM of 5 lowest cells

    =SUM(SMALL(D2:D14,{1,2,3,4,5}))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    02-10-2011
    Location
    Whitefish, Montana
    MS-Off Ver
    Excel 2011 for mac
    Posts
    16

    Re: Aggegate formula

    This solution continues with the same problem. Team 1 still has a score of 6.5 when the score should be 4.5. Thank you for trying!

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Aggegate formula

    The formula I gave you returns 4.5

  5. #5
    Registered User
    Join Date
    02-10-2011
    Location
    Whitefish, Montana
    MS-Off Ver
    Excel 2011 for mac
    Posts
    16

    Re: Aggegate formula

    I have it in like this: =SUMIFS($D$2:$D$500,$A$2:$A$500,E3,$D$2:$D$500,"<="&SUM(SMALL(D3:D15,{1,2,3,4,5})))

    and I get 6.5. I can't run it without the SUMIFS because I need it to be thinking about the individual teams.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Aggegate formula

    Try this in G2:G3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    1
    teamname divname runaplace adjusted score teamname Team Count Score
    2
    Team 1 Half Marathon
    1
    1
    Team 1
    7
    4.5
    3
    Team 1 Half Marathon
    1
    1
    Team 2
    6
    16
    4
    Team 1 Half Marathon
    1
    1
    5
    Team 1 Half Marathon
    1
    1
    6
    Team 1 Half Marathon
    1
    1
    7
    Team 1 Half Marathon
    1
    1
    8
    Team 1 Full Marathon
    1
    0.5
    9
    Team 2 Full Marathon
    3
    1.5
    10
    Team 2 Half Marathon
    3
    3
    11
    Team 2 Full Marathon
    7
    3.5
    12
    Team 2 Half Marathon
    4
    4
    13
    Team 2 Half Marathon
    4
    4
    14
    Team 2 Half Marathon
    5
    5


    Does this return what you expect?
    Dave

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Aggegate formula

    Hi,

    This looks like a CSE answer to me. Something like:

    =SUM(SMALL(IF($A$2:$A$14=E2,$D$2:$D$14,""),{1,2,3,4,5})) (confirm with CSE)

    See attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  8. #8
    Registered User
    Join Date
    02-10-2011
    Location
    Whitefish, Montana
    MS-Off Ver
    Excel 2011 for mac
    Posts
    16

    Re: Aggegate formula

    Thank you Dave! This one did the trick! =SUM(AGGREGATE(15,6,$D$2:$D$500/($A$2:$A$500=E2),{1,2,3,4,5}))
    Last edited by mbsmeltzer; 09-01-2015 at 11:04 AM. Reason: added formula to confirm which solution solved my problem.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Aggegate formula

    You are welcome. Glad you found your solution, and thanks for the rep.

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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