+ Reply to Thread
Results 1 to 5 of 5

COUNTIFS Across multiple worksheets

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    COUNTIFS Across multiple worksheets

    Hi all,

    New to the forum and an average exceller (is that a word!?!). I am having a problem getting my formula to return a result. The basics are that I would like a count of a specific set of data in a section of a workbook. So in column 'A' I am searching for 'TextA' but this also has to have 'TextB' in column C. The problem is I have 12 consecutive monthly worksheets I would like to pull this data from and I only really want to write one formula. I can (and started to) use the countifs function plus countifs function etc referencing each worksheet individually but this seems long winded. I have read on this forum that I can use sumproduct combined with countifs but I can't seem to get it right. I have listed my formula for a single sheet countifs function below, but I don't know how or if to include the sumproduct function to reference the rest of the monthly worksheets. The other thing I should mention is that there are other worksheets too, so it would need to be specific to this range, but they are consecutive within the workbook.

    Please Login or Register  to view this content.
    Any help would be very gratefully received!

    Many thanks in advance.

    Regards
    PalaceOzzy

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: COUNTIFS Across multiple worksheets

    Hi,

    Go to Name Manager and create a new name, Sheets say, as a comma-separated list of all the relevant tab names, e.g.:

    ={"Jan 12","Feb 12","Mar 12","Apr 12"}

    (Note the curly brackets.)

    Your formula is then:

    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&Sheets&"'!A:A"),"=TextA",INDIRECT("'"&Sheets&"'!C:C"),"=TextB"))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: COUNTIFS Across multiple worksheets

    Try.. =COUNTIFS('Jan 12'!A:A,"TextA",'Jan 12'!C:C,"TextB")

  4. #4
    Registered User
    Join Date
    01-24-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: COUNTIFS Across multiple worksheets

    Hi XOR LX,

    Thank you very much for your solution, it worked perfectly, so thanks for your quick response to my problem.

    Regards
    PalaceOzzy

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: COUNTIFS Across multiple worksheets

    You're welcome.

+ 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. [SOLVED] CountIfs with multiple Criteria and Two Worksheets
    By richtree in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-12-2013, 07:17 PM
  2. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  3. worksheetfunction.countifs with loop from multiple worksheets
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 04:55 PM
  4. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  5. Countifs alternative on 2003 with multiple cells and worksheets
    By Ex0dus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2009, 10:44 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