+ Reply to Thread
Results 1 to 9 of 9

COUNTIF multiple sheets

  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    84

    COUNTIF multiple sheets

    Hi all!

    How do I count the same range om several sheets?

    Eg:

    I want to count L4 to L8 on sheets 1 to 31,
    by modifying this formula:
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1'!$L$4:$L$8,"CLIENT")

    I have tried:
    =COUNTIF('[DAILY REPORTS AND ROUTES.xlsx]1:31'!$L$4:$L$8,"CLIENT")
    but it doesnt work.

    Please help!

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: COUNTIF multiple sheets

    Although Excel allows the range notation to span several sheets for the same range, it's still the same as several ranges. Unfortunately, the COUNTIF function does not support multiple ranges.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: COUNTIF multiple sheets

    Any other way of doing it then?

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: COUNTIF multiple sheets

    Use the COUNTIF in each sheet (in a helper cell), then sum those cells.

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: COUNTIF multiple sheets

    Or, build a large formula like:

    Please Login or Register  to view this content.

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2010
    Posts
    4,332

    Re: COUNTIF multiple sheets

    Maybe if possible...!!??

    DEFINEDSHEET - defined name which holds the sheet names

    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  7. #7
    Registered User
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: COUNTIF multiple sheets

    SJEEZ NOW U HAVE MY HEAD SPINNING!!!

    Thanx!

  8. #8
    Registered User
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: COUNTIF multiple sheets

    Say I want to count sheets 1-31, how would I write this then?

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&DEFINEDSHEET&"'!$L$4:$L$8"),"CLIENT"))
    tried
    =SUMPRODUCT(COUNTIF(INDIRECT("'"&DEFINEDSHEET1:31&"'!$L$4:$L$8"),"CLIENT"))
    doesnt work...

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    mysore
    MS-Off Ver
    Excel 2010
    Posts
    5,296

    Re: COUNTIF multiple sheets

    In the workbook DAILY REPORTS AND ROUTES.xlsx The range L4:L8 in Each Sheet can be Named like
    SL1,SL2,....etc and following formula can be used
    =SUM(COUNTIF(SL1,"CLIENT"),COUNTIF(SL2,"CLIENT"),COUNTIF(SL3,"CLIENT"),......)

+ 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