+ Reply to Thread
Results 1 to 12 of 12

SUMPRODUCT Error

  1. #1
    Forum Contributor
    Join Date
    07-16-2008
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    106

    SUMPRODUCT Error

    I'm trying to use this formula but I keep getting an #value error

    =SUMPRODUCT(--('[Weekly Sheets.xlsx]W1'!$B$5:$B$199=C1),--'[Weekly Sheets.xlsx]W1'!$D$15:$D$199="W*1")

    If worksheet W1 in cell D15 has a "W" looking for a result of 1

    Thanks
    Last edited by Killer17; 10-16-2008 at 12:32 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    The ranges need to be the same size.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    In "W*1" does * represent a wildcard or a literal *?

    If it's the former then your formula won't do what you want - even with same-sized ranges - [you can't use wildcards with a comparison operator like =]

    What sort of values do you have in D15:D199?

  4. #4
    Forum Contributor
    Join Date
    07-16-2008
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    106
    In "W*1" does * represent a wildcard or a literal *? ?
    "W1" represents a worksheet


    What sort of values do you have in D15:D199?
    This is the Formula i'm using in Cell D15:D199

    =IF(AND(D14<>0,D30<>""),IF(D14>D30,"W","L"),"")

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    DLL was referring to the W*1 in '[Weekly Sheets.xlsx]W1'!$D$15:$D$199="W*1"

    If you're just looking for W, then

    =SUMPRODUCT( ('[Weekly Sheets.xlsx]W1'!$B$15:$B$199=C1) * ('[Weekly Sheets.xlsx]W1'!$D$15:$D$199="W") )

  6. #6
    Forum Contributor
    Join Date
    07-16-2008
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    106
    Here an example of what I'm trying to do

    I have two Work Sheets one is Team Sheet other named "W1"

    On Team Sheet Cell C1 is the Team name
    I'm looking for the result “W1” worksheet into my Team Sheet

    On my Worksheet “W1” Names are listed from B5 down to B199.

    The W are located in cell D15 to D199 if there's a cell with a "W" in it must match Team name and return a result in my Team Sheet in Cell B21 the result should be based on “W” =1

    I hope this helps

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Assuming the formula I posted doesn't do what you want, I think you need to post a workbook and explain in context.

  8. #8
    Forum Contributor
    Join Date
    07-16-2008
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    106
    Quote Originally Posted by shg View Post
    Assuming the formula I posted doesn't do what you want, I think you need to post a workbook and explain in context.
    Hey SHG it didn't work

    so I posted an example
    Attached Files Attached Files

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Where does the formula go? Please explain your workbook.

  10. #10
    Forum Contributor
    Join Date
    07-16-2008
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    106
    Quote Originally Posted by shg View Post
    Where does the formula go? Please explain your workbook.
    The forumla should go under each team sheet in cell D7 & E7 I have update the sheet to show you.

    Work Sheet "W1" is where the W & L are listed for each team.
    Attached Files Attached Files

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If your tables in W1 sheet are consistently spaced and sized, then you can try something like this:

    In D7:

    =COUNTIF(OFFSET('W1'!B1,MATCH(C1,'W1'!B:B,0),,15,5),"W") for Wins

    and in E7:

    =COUNTIF(OFFSET('W1'!B1,MATCH(C1,'W1'!B:B,0),,15,5),"L") for Losses

    I have allowed for 15 rows of data between Team names in W1 sheet. So that the W's and L's are contained within those 15 rows. The 5 allows for a width of 5 columns from column B in the W1 sheet.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  12. #12
    Forum Contributor
    Join Date
    07-16-2008
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    106
    Thanks NBVC

    The two formulas work fine thanks a million
    Last edited by NBVC; 10-16-2008 at 12:35 AM. Reason: Incorrect spelling of my name

+ 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. Run-time error '91' when 'On error goto' and cells.find
    By bjoern in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2008, 07:27 PM
  2. SUMPRODUCT error
    By rjmills18 in forum Excel General
    Replies: 2
    Last Post: 08-28-2008, 07:34 AM
  3. SumProduct error when using Year , Month and text criteria
    By jsrobin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2008, 10:56 PM
  4. Sumproduct #Value! Error due to Text
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-02-2007, 07:21 AM
  5. Sumproduct and value error
    By bountifulgrace in forum Excel General
    Replies: 2
    Last Post: 10-26-2006, 07:33 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