+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sheets

  1. #1
    Registered User
    Join Date
    03-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sheets

    Hello all,

    I have searched for this answer all over the place and have seen a lot of solutions all using different ways and formats to make it work but none have worked for me on Excel 2007. I am new to using any of these formulas.

    I have a workbook with about 7 worksheets that all have a particular area (R[13]C[7]:R[76]C[7]) that has a dropdown selection for PASS and FAIL. On the first sheet I want to display the total number of PASS in area R[7]C[7].

    Like I said I have seen a lot of formats and tried every one with no success.

    The first one was defining a name for the range of sheets so I tried that by defining the name sheets with the value as {...} and refers to set to: =Roles:Auditing. Roles being my first sheet and Auditing being the last sheet in the workbook. I then plugged in the format I found on the web:

    =SUMPRODUCT(COUNTIF(INDIRECT("'Sheets'!","'R[-18]C[3]:R[45]C[3]'!"),"PASS"))

    This gives a #VALUE! error and does not work.

    I also tried this approach but it did not work either:

    =SUMPRODUCT(COUNTIF(INDIRECT("'Roles:Auditing'!","!R[-18]C[3]:R[45]C[3]"),"PASS"))

    Can someone help me with a formula that will work with Excel 2007?

    I also tried others that have single quotes/double quotes/&'s around the defined name etc.

    Thanks in advance!!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sh

    To go over muliple sheets is not as simple...

    You can download and install a free addin, Morefunc.xll

    and use this:

    =SUMPRODUCT(--(THREED('Roles:Auditing'!R[-18]C[3]:R[45]C[3])="PASS"))
    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

    Re: Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sh

    An alternative without addins..

    Make a list of all sheets in one column and name that range (Insert|Name|Define) something like: TabNames

    Then apply

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&TabNames&"'!R[-18]C[3]:R[45]C[3]"),"PASS"))

  4. #4
    Registered User
    Join Date
    03-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sh

    Quote Originally Posted by NBVC View Post
    To go over muliple sheets is not as simple...

    You can download and install a free addin, Morefunc.xll

    and use this:

    =SUMPRODUCT(--(THREED('Roles:Auditing'!R[-18]C[3]:R[45]C[3])="PASS"))
    If I use this on the sheet would anyone opening the sheet also need the plugin omn their machien to view it correctly?

  5. #5
    Registered User
    Join Date
    03-25-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sh

    Quote Originally Posted by NBVC View Post
    An alternative without addins..

    Make a list of all sheets in one column and name that range (Insert|Name|Define) something like: TabNames

    Then apply

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&TabNames&"'!R[-18]C[3]:R[45]C[3]"),"PASS"))
    When I run it this way I get a #REF! error. When I evaluate the formula I can see it adding in the Tab names and every tab checking the designated area. This looks like it should work.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sh

    If you are using 2003 version, the addin allows you to embed itself in the workbook so you can share it.

    I heard that this is not working in 2007...but can't be 100% sure.

    If that is the case, try my second option.. uses native functions.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel 2007 using SUMPRODUCT(COUNTIF(INDIRECT to count the value of PASS on all sh

    Try adding the FALSE qualifier to the INDIRECT function and see if that works.

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&TabNames&"'!&R[18]C[3]:R[45]C[3]",FALSE),"PASS"))
    Last edited by NBVC; 03-25-2010 at 02:58 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