Results 1 to 5 of 5

How to count rows based on multiple criteria

Threaded View

jackb1117 How to count rows based on... 03-27-2009, 01:52 AM
DonkeyOte Re: How to count rows based... 03-27-2009, 05:03 AM
jackb1117 Re: How to count rows based... 03-27-2009, 07:09 AM
DonkeyOte Re: How to count rows based... 03-27-2009, 08:23 AM
DonkeyOte Re: How to count rows based... 03-27-2009, 08:36 AM
  1. #1
    Registered User
    Join Date
    03-27-2009
    Location
    Boston, United States
    MS-Off Ver
    Excel 2003
    Posts
    12

    Smile How to count rows based on multiple criteria

    I am trying to design a formula that will count the number of rows that meet certain criteria. The criteria are that status equals either 'active' or 'inactive', and that the region equals a certain region(s).

    I have attached a sheet that has a sample of data (data tab), and my formula on the results tab. If, for instance, I want to find all 'Active' status with a region of 'South', I have been using this formula (Note: I am using named ranges here): =SUMPRODUCT((Status="Active")*(ISNUMBER(SEARCH("South",Region)))) which works as expected.

    Where I am running into trouble is when I try to incorporate an 'OR' into this. For instance, all 'Active' accounts where the region equals 'South' OR 'West'. I have tried incorporating an OR into the formula in many different places, but to no avail. And when I use: =SUMPRODUCT((Status="Active")*(ISNUMBER(SEARCH("South",Region)*(ISNUMBER(SEARCH("West",Region)*)))))) , it functions like an 'AND' statment.

    Any help would be GREATLY appreciated.

    Cheers,

    Jack
    Attached Files Attached Files
    Last edited by jackb1117; 03-27-2009 at 01:57 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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