+ Reply to Thread
Results 1 to 19 of 19

SumProduct help please

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    New Zealand
    MS-Off Ver
    XP
    Posts
    11

    Question SumProduct help please

    I was given this formula by you guys to read the number of "W" (Wins) in alternate cols in a row.
    SUMPRODUCT((B25:AA25 ="W")* (MOD(COLUMN(B25:AA25), 2) =1))
    But we've had a system change and now need to read the number of W's when there could be 'WW', 'LW' or 'WL' in a col.
    Can someone assist us to get our program working again please.

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

    Re: SumProduct help please

    Perhaps

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: SumProduct help please

    Or maybe just...
    SUMPRODUCT((B25:AA25 ="*W*")* (MOD(COLUMN(B25:AA25), 2) =1))
    (untested)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: SumProduct help please

    Try

    SUMPRODUCT((B25:AA25 ="W")*(B25:AA25 ="LW")*(B25:AA25 ="WL") *(B25:AA25 ="WW"))*(MOD(COLUMN(B25:AA25), 2) =1))

    Ochimus

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: SumProduct help please

    this maybe?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by humdingaling; 05-22-2016 at 08:36 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: SumProduct help please

    Ford...cant wildcard like that
    you would need to do something like this instead

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: SumProduct help please

    yeah I kinda figured that, too - thanks

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: SumProduct help please

    Gaz
    not sure if your data still has single "W" or not

    if not then both solutions in 5 and 6 work
    if yes, and you dont want to count it then use #5 if you do want to count it then use #6

  9. #9
    Registered User
    Join Date
    04-16-2015
    Location
    New Zealand
    MS-Off Ver
    XP
    Posts
    11

    Re: SumProduct help please

    Thanks Humdingaling
    No I don't need the "W".
    Your formula is not counting the number of "W"s, it's counting "WW" as one when it should be 2.
    Last edited by gazzal; 05-22-2016 at 09:19 PM.

  10. #10
    Registered User
    Join Date
    04-16-2015
    Location
    New Zealand
    MS-Off Ver
    XP
    Posts
    11

    Re: SumProduct help please

    This gets it going but is it a good formula?
    SUMPRODUCT((B5:AA5 ="WW")+(B5:AA5 ="WW")+(B5:AA5 ="WL")+(B5:AA5 ="LW")*(MOD(COLUMN(B5:AA5), 2) =1))

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: SumProduct help please

    do you have a sample workbook to share?

  12. #12
    Registered User
    Join Date
    04-16-2015
    Location
    New Zealand
    MS-Off Ver
    XP
    Posts
    11

    Re: SumProduct help please

    Workbook attached. It's just a small sample I've thrown together.
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: SumProduct help please

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    your doing WW twice here?

  14. #14
    Registered User
    Join Date
    04-16-2015
    Location
    New Zealand
    MS-Off Ver
    XP
    Posts
    11

    Re: SumProduct help please

    Yes and it works in all tests I've done.
    That's why I asked if it's a good formula. I think just counting the "W"s in a row may be better? but the multiple WW throws my ideas out.

  15. #15
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: SumProduct help please

    not sure what you are counting

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    this formula searchs for anything with "W" which seems to be what you want? but not really based on your sample file?

  16. #16
    Registered User
    Join Date
    04-16-2015
    Location
    New Zealand
    MS-Off Ver
    XP
    Posts
    11

    Re: SumProduct help please

    Last season we played one game of pairs and one game of singles (W|W) each week, this season one game of pairs and two games of singles (W|WW).
    So we need to count the number of wins and losses in alternate cols and I'm having problems counting the WW in a formula.
    As I've stated the formula SUMPRODUCT((B5:AA5 ="WW")+(B5:AA5 ="WW")+(B5:AA5 ="WL")+(B5:AA5 ="LW")*(MOD(COLUMN(B5:AA5), 2) =1)) works fine but is it a good formula with the two (B5:AA5 ="WW") in it. Will this cause unforseen problems?.
    Your last formula =SUMPRODUCT(--ISNUMBER(SEARCH("W",B25:AA25)*(MOD(COLUMN(B25:AA25),2)=1))) does'nt count the 2nd W in "WW".

  17. #17
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: SumProduct help please

    arrr ok you want to count the total amount of W's
    that would be should be ok

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    this would be much simpler, in case you get "WWW" to contend with next year

  18. #18
    Registered User
    Join Date
    04-16-2015
    Location
    New Zealand
    MS-Off Ver
    XP
    Posts
    11

    Re: SumProduct help please

    [SOLVED] Thanks muchly Humdingaling

  19. #19
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: SumProduct help please

    Hi

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

    For L? Just change WW to LL.

    For Total just add W then put in I like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your 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. Subtract Sumproduct from a sumproduct
    By Prcntrygrl in forum Excel General
    Replies: 6
    Last Post: 01-17-2011, 02:34 PM
  7. 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

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