+ Reply to Thread
Results 1 to 5 of 5

CountIFs question

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    16

    CountIFs question

    hey ive got a working formula but now i need it to get date from more then 1 sheet and am having trouble

    Please Login or Register  to view this content.
    I want it to check maybe 5 other sheets as well as 1 they are named 2,3,4 and 5

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730

    Re: CountIFs question

    Try this version

    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&{1,2,3,4,5}&"'!E6:E200"),"Sign On",INDIRECT("'"&{1,2,3,4,5}&"'!F6:F200"),"Yes"))
    Audere est facere

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: CountIFs question

    returns a #REF error

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730

    Re: CountIFs question

    it works when I test it - do you have 5 sheets called 1,2,3,4 and 5? If not you'll get an error.......

    this version will cope with some or all of the sheets being missing

    =SUMPRODUCT(IFERROR(COUNTIFS(INDIRECT("'"&{1,2,3,4,5}&"'!E6:E200"),"Sign On",INDIRECT("'"&{1,2,3,4,5}&"'!F6:F200"),"Yes"),0))
    Last edited by daddylonglegs; 06-12-2012 at 07:24 AM.

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: CountIFs question

    That works thanks man and you were right page no4 was named incorrectly

    good job at being awesomly awesome

+ 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