+ Reply to Thread
Results 1 to 5 of 5

Excel formula for three conditions

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Excel formula for three conditions

    Hi,
    I have a problem to produce counts that need to match three conditions. Hoping to get some help.

    I have such a table as per the attached 'sample data.xlsx' file.
    This is what I need to do:

    "for all rows where Iteration=1,
    count all State=Active, where Severity=Showstopper;
    count all State=Closed, where Severity=Showstopper;
    .
    .
    .
    for all rows where Iteration=2,
    count ...
    .
    .
    ."

    Basically for all combination of columns B, C and E.

    Hope to hear from someone soon.
    Thanks in advance.
    Attached Files Attached Files
    Last edited by rathajs; 06-10-2011 at 02:46 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,580

    Re: Excel formula for three conditions

    You can do this with COUNTIFS but you'd need separate tables.

    However, you'd be better with a Pivot Table.

    See the updated example

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Excel formula for three conditions

    Hi TM Shucks.
    Thanks so much for your help. Worked like a charm!
    Regards.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,580

    Re: Excel formula for three conditions

    You're welcome. Thanks for the rep.

  5. #5
    Registered User
    Join Date
    05-09-2012
    Location
    USA
    MS-Off Ver
    2019 16.0.13205.200000 64-bit
    Posts
    61

    Re: Excel formula for three conditions

    ..........
    Last edited by splendidus; 05-26-2012 at 05:10 AM.
    Office 2019 16.0.13205.200000 64-bit

+ 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