+ Reply to Thread
Results 1 to 5 of 5

Solution for sum of cells with inclusion of mandatory cells

  1. #1
    Registered User
    Join Date
    10-18-2009
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2002
    Posts
    3

    Solution for sum of cells with inclusion of mandatory cells

    Was very happy to find this forum and hoping to find a Excel wizard....


    I am using Excel to keep track of results for a fishing league. As such I am trying to get the formula that will add the seven largest numbers entered in a row/column. However, this sum MUST contain at least one score entry from one of three mandatory scoring colums. Further explained, we have 11 tournements and only your top 7 scores count. However 3 tournements are considered mandatory. Therefore, one of your top seven scores must be the result of one of those mandatory three. You could have all three mandatory scores in your top 7 but at a minimum you must have one.

    Probably over-explained but better more than not enough. So far I have:

    "=LARGE(D5:N5,7)+LARGE(D5:N5,6)+LARGE(D5:N5,5)+LARGE(D5:N5,4)+LARGE(D5:N5,3)+LARGE(D5:N5,2)+LARGE(D5:N5,1)"

    The mandatory cells are F5, G5, and N5. So one of the top seven scores must come from these three cells.

    I think this is correct for totaling the seven best scores. However, I need to find the additonal formula for ensuring that at least one of those numbers comes from three mandatory cells.

    Hoping for help!

    Thanks,
    OBA
    Last edited by OmahaBassAngler; 10-18-2009 at 10:40 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Solution for sum of cells with inclusion of mandatory cells

    Does the below work for you ?

    =SUM(LARGE(D5:N5,{1,2,3,4,5,6,7}))-MAX(0,LARGE(D5:N5,7)-MAX(F5,G5,N5))

  3. #3
    Registered User
    Join Date
    10-18-2009
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Solution for sum of cells with inclusion of mandatory cells

    Quote Originally Posted by DonkeyOte View Post
    Does the below work for you ?

    =SUM(LARGE(D5:N5,{1,2,3,4,5,6,7}))-MAX(0,LARGE(D5:N5,7)-MAX(F5,G5,N5))

    DonkeyOte,

    That almost works. While it is providing the sum, I am looking for a zero score if the entries to the three mandatory fields are zero.

    So, if F5, G5, F5 are "0", then sum="0".

    Thanks for the formula.
    OBA

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Solution for sum of cells with inclusion of mandatory cells

    Add a SUM test

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-18-2009
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2002
    Posts
    3

    Re: Solution for sum of cells with inclusion of mandatory cells

    Actually, that is correct. Thanks DonkeOte. I really appreciate the help.

    OBA
    Last edited by OmahaBassAngler; 10-18-2009 at 12:57 PM.

+ Reply to 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