+ Reply to Thread
Results 1 to 3 of 3

counting across several worksheets help needed please

  1. #1
    Registered User
    Join Date
    01-11-2005
    Posts
    4

    Question counting across several worksheets help needed please

    I need to do a count over several worksheets in the same workbook.
    For example:

    cell D15 on sheet 12 needs to be the total of the number of "y" in cell D15 on sheets 1-10, cell E15 on sheet 12 needs to be the total of the number of "n" in cell E15 on sheets 1-10.

    I've tried countif, but that hasn't worked. I've tried sum and sumproduct without luck.

    Anyone help please??

    Thank you!

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    Sheet12!D15:

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&$A$1:$A$10&"'!D15"),"y"))

    Sheet12!E15:

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&$A$1:$A$10&"'!E15"),"n"))

    ...where A1:A10 contain your sheet names.

    Hope this helps!

    Quote Originally Posted by debbyes
    I need to do a count over several worksheets in the same workbook.
    For example:

    cell D15 on sheet 12 needs to be the total of the number of "y" in cell D15 on sheets 1-10, cell E15 on sheet 12 needs to be the total of the number of "n" in cell E15 on sheets 1-10.

    I've tried countif, but that hasn't worked. I've tried sum and sumproduct without luck.

    Anyone help please??

    Thank you!

  3. #3
    Registered User
    Join Date
    01-11-2005
    Posts
    4

    Thumbs up Thank you!

    That was a help!

+ 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