+ Reply to Thread
Results 1 to 3 of 3

Using two ranges as ONE RANGE in countifs with conditions. Formula returns an error

  1. #1
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Using two ranges as ONE RANGE in countifs with conditions. Formula returns an error

    Hi there,

    I have a total of 3 worksheets. The first worksheet shows record details for site A while the 2nd worksheet shows record details for site A as well, but this is more of a supplementary worksheet. The 3rd worksheet is for reporting.

    What I would like:

    Use a countifs formula to count values found in multiple ranges based on conditions. Please see the formula I've used in cell C2 in "reporting sheet"

    Please Login or Register  to view this content.

    When I press enter, excel is telling me that the formula contains an error.

    The reason I'm + ranges as ONE is because two worksheets are involved for site a.

    Do you understand where I am going with this? Maybe countifs is not suitable here when it comes to group two ranges as ONE RANGE to apply the conditions on?

    Thank you for any possible guidance.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Using two ranges as ONE RANGE in countifs with conditions. Formula returns an err

    Can't use COUNTIFS like this, If you just have 2 sheets use 2 countifs like,

    =COUNTIFS('Site A Main'!A:A,A2,'Site A Main'!B:B,B2,'Site A Main'!C:C,C2)+COUNTIFS('Site A sub'!A:A,A2,'Site A sub'!B:B,B2,'Site A sub'!C:C,C2)

    If you have more sheets, you can use COUNTIFS with INDIRECT
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Valued Forum Contributor
    Join Date
    10-21-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    513

    Re: Using two ranges as ONE RANGE in countifs with conditions. Formula returns an err

    Thanks.

    I will give it a try!

+ 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