+ Reply to Thread
Results 1 to 11 of 11

SUMPRODUCT or SUMTHING ELSE???

  1. #1
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    SUMPRODUCT or SUMTHING ELSE???

    I have a worksheet that is used to score monthly target shooting for a club. Months are the columns and members names are the rows. They want to sum the top 8 scores for each member and use that to select the top 3 shooters for the year. The big problem is that not all contestants show up each month, so some of the guys don't have 8 months of scores. I tried this formula:

    =SUMPRODUCT(LARGE(C7:N7,{1,2,3,4,5,6,7,8}))

    which works great IF there are 8 scores in the range. If not, I get the dreaded #NUM error message.

    I then thought that using an IF statement and COUNTIF to determine if there were 8 scores across all months or not but then what? If there are 8, that settles the TRUE portion of the formula and if there are only 7 scores I could set up the ELSE part of the formula to evaluate 7, but what if there aren't even 7 months with scores? It seems like the SUMPRODUCT function won't work for this...

    Does anyone have any ideas about how to determine how many scores there are in each row for the year, sum the top 8 scores if they have them, or sum less if they didn't make it to all the shoots?

    Am I just overthinking this?

    Thanks guys!

    Mike

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: SUMPRODUCT or SUMTHING ELSE???

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: SUMPRODUCT or SUMTHING ELSE???

    Hi Mike,

    Have you tried adding a zero with your range? like this:

    =SUMPRODUCT(LARGE(C7:N7+0,{1,2,3,4,5,6,7,8}))

    It basically converts #NUM! to 0.
    #NUM! can not be calculated but the 0.

    Blessing

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: SUMPRODUCT or SUMTHING ELSE???

    =IF(COUNT(C7:N7)>7,SUMPRODUCT(LARGE(C7:N7,{1,2,3,4,5,6,7,8})),"")
    try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMPRODUCT or SUMTHING ELSE???

    If I understand what you want...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    7
    442
    48
    60
    45
    32
    34
    94
    25
    20
    11
    63
    66
    18
    8
    194
    98
    13
    83
    9
    415
    84
    92
    40
    83
    46
    43
    27
    10
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----
    -----


    This formula entered in A7 and copied down:

    =IF(COUNT(C7:N7),SUMPRODUCT(LARGE(C7:N7,ROW(INDIRECT("1:"&MIN(COUNT(C7:N7),8))))),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    Re: SUMPRODUCT or SUMTHING ELSE???

    That worked perfectly Tony!

    Now, the next dilemma occurs because they want to know who actually showed up for at least 8 matches. So, I used a COUNTIF formula as a Conditional Formula to indicate which contestants have scores in 8 or more months. Like this:

    =COUNTIF(C3:O3,">=8")

    It seemed so simple... But now when I put that conditional formula in each of the score's rows, it reformats every row to Bold/Italic and colored green regardless of whether they are >8 or not.

    (I also put the same COUNTIF formula in the R column to show how many matches they showed up for just to check the Conditional Formatted column.)

    I've attached a sample of the data to this post.

    I really appreciate everyone's suggestions and help. I think this is the last modification that he needs. (But I've been wrong about that before...)
    Attached Files Attached Files

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMPRODUCT or SUMTHING ELSE???

    This formula:

    =COUNTIF(C3:O3,">=8")

    Is counting how many numbers (scores) in the range are greater than or equal to 8.

    Because the sores are all over 100 the formula counts every cell that has a value.

    I'm thinking that you want to use a COUNT formula:

    =COUNT(C3:O3)

    This will return the count of numbers (scores) in the range.

    Not sure how you want to use this in conjunction with conditional formatting.

  8. #8
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    Re: SUMPRODUCT or SUMTHING ELSE???

    They only want to issue awards to those who showed up for 8 or more matches. I was simply trying to show that by setting those that fit that criteria with a Bold/Italics/Green score. It seems like the CountIf function should work. Don't know why it isn't...
    Last edited by MikeA57; 12-21-2015 at 02:28 PM.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMPRODUCT or SUMTHING ELSE???

    OK, for conditional formatting, use this formula:

    =COUNT(C3:O3)>=8

  10. #10
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    Re: SUMPRODUCT or SUMTHING ELSE???

    That worked. I kept wondering if I needed to use the COUNTIF with the 2 sections in it or not.

    Thank you!!!!!!

    I'll get this to him.

    Your time is so appreciated Tony.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMPRODUCT or SUMTHING ELSE???

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. [SOLVED] Use sumproduct to further parse a sumproduct calculation
    By Araise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2015, 08:17 PM
  2. Count SUMPRODUCT Members / Average of SUMPRODUCT
    By Shingaru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 03:59 PM
  3. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  4. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  5. Replies: 6
    Last Post: 03-09-2011, 08:01 AM
  6. Using a SumProduct Count to find a SumProduct Total?
    By XL021710 in forum Excel General
    Replies: 3
    Last Post: 02-18-2010, 08:31 AM
  7. [SOLVED] sumif or sumthing else?
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-04-2005, 01:40 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