+ Reply to Thread
Results 1 to 8 of 8

Resolve a problem with a sumproduct formula

  1. #1
    Registered User
    Join Date
    03-12-2008
    Posts
    19

    Resolve a problem with a sumproduct formula

    could someone tell me why this doesnt work?


    =SUMPRODUCT(--('bakewell home'!$C$2:$O$27="a2")*('bolsover united home'!$C$2:$O$27="A2")*('chesterfield blues home'!$C$2:$O$27="a2")*('glapwell home'!$C$2:$O$27="a2")*('matlock home'!$C$2:$O$27="a2")*('middleton united home'!$C$2:$O$27="a2")*('pilsley home'!$C$2:$O$27="a2")*('rowsley home'!$C$2:$O$27="a2")*('doncaster city home'!$C$2:$O$27="a2")*('glapwell home'!$C$2:$O$27="a2"))

    am i right in thinking that this counts how many times a2 is in each sheet (c2:o27)?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I don't think you can use Sumproduct this way....

    You have to add the individual Sumproducts for each sheet....

    actually you only then need Sumif

    e.g.
    Please Login or Register  to view this content.
    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.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Another way using a shorter formula would be the following.

    First you list all the sheetnames in a vertical array somewhere in your workbook.

    Name that array something like "TabNames" through Insert|Name|Define and then you can use formula:
    Please Login or Register  to view this content.
    This should some the same range in all sheets and give a total

  4. #4
    Registered User
    Join Date
    03-12-2008
    Posts
    19

    Smile help please

    that doesnt work, it says error,

    just to make sure that i have explained myself,
    i want to count how many times the cell value (in this case "bowler") appears in the different ranges,

    could you help further?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    What kind of error...if it is #NAME? then you haven't defined the range called TabNames as I mentioned above.

    To refer to a cell's contents, just take out the quotes from around A2...

    Please Login or Register  to view this content.
    EDIT: Sorry that should be COUNTIF:

    Please Login or Register  to view this content.
    Last edited by NBVC; 03-14-2008 at 11:36 AM.

  6. #6
    Registered User
    Join Date
    03-12-2008
    Posts
    19

    Question 1

    THE CELL where i want the value to be (where i am putting your formula in) comes out as #REF, do you know why this could be?

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Did you spell out the sheetnames correctly (or moreover...do they match exactly to the actual tabs - including spaces, etc.)?

    BTW: I posted a correction to my previous formula...did you notice it?

  8. #8
    Registered User
    Join Date
    03-12-2008
    Posts
    19

    thanks... again

    my bad made a stupid mistake

    thanks a lot

+ 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