+ Reply to Thread
Results 1 to 3 of 3

Formula that counts rows that match 2 criteria, but do not match another

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Jersey, Channel Islands
    MS-Off Ver
    Office 2010
    Posts
    25

    Formula that counts rows that match 2 criteria, but do not match another

    Hi again All!

    I was wondering if there is a formula that would allow me to count how many rows there are that match a given paramater in E2:E3000 of "Inhouse", G2:G3000 of "Martin" and that does NOT count any that have in F2:F3000 "External" I know it is possible to count how many that match the first two parameters, using the formula:

    =SUMPRODUCT(--(E2:E3000="Inhouse"),--(G2:G3000="Martin"))

    But it is counting incorrectly as I want it to ignore entries with the F2:F3000 that reads "External"

    Thanks
    Martin

  2. #2
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Formula that counts rows that match 2 criteria, but do not match another

    Use countif function if not upload a file.

    Thanks
    Thameem

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula that counts rows that match 2 criteria, but do not match another

    Maybe.

    =SUMPRODUCT((E2:E3000="Inhouse")*(G2:G3000="Martin")*(F2:F3000<>"External"))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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