+ Reply to Thread
Results 1 to 3 of 3

Need help in creating a COUNTIF formula based on 2 conditions

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Need help in creating a COUNTIF formula based on 2 conditions

    Hello Guys,

    I need help in creating a Formula.

    There are 2 types of condition given in attached file. Condition 1 is the actual scenario in which any category is having a status as “Important” then it has been marked as 1 in Column C (Yes) and if any category is having a status as “Not Important” then it has been marked as 1 in Column D (No). In cell C11 and D11 “COUNTIFS” formula has been used to get the Total No.

    In Condition 2 which is current scenario and for which I need help to create a formula is, if incase Category status is “Important” but Column D (No) is marked as 1 instead of Column C (Yes) then Total of Column D should be get 0 (or show Error) automatically and if incase Category which is “Not Important” has been marked as 1 in Column C (Yes) instead of Column D (No) then Total of Column C should be get 0 automatically.

    Means can we create a "COUNTIFS" formula which check if status is "Important" and Column C is marked as 1 then generate the Count of total 1 for Column C but if status is "Important and Column D is marked as 1 then Column C total should be get 0 automatically and same has to be done in case of "Not Important" status also.

    Note: The cells has been highlighted in Yellow which needs to be consider for Condition 2 scenario.

    Thanks,
    MG
    Attached Files Attached Files
    Last edited by Manish_Gupta; 03-19-2014 at 12:31 PM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Need help in creating a COUNTIF formula based on 2 conditions

    Pl see attached file with formula.
    Attached Files Attached Files

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Need help in creating a COUNTIF formula based on 2 conditions

    since you are on XL2007, you can try this formula in D24:

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data Validation: help creating error message based on certain conditions
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2013, 03:59 PM
  2. Replies: 5
    Last Post: 10-15-2012, 06:33 PM
  3. Creating separate lists from a master list based on conditions
    By kenk99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2010, 10:22 AM
  4. CountIF formula with two conditions
    By gambinus2 in forum Excel General
    Replies: 3
    Last Post: 05-27-2009, 02:18 PM
  5. Creating a new list based on conditions
    By Dubbelito in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2008, 03:58 AM

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