+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Count a range with two conditions

  1. #1
    Registered User
    Join Date
    04-27-2012
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Count a range with two conditions

    Hi,

    I am trying to count a range with two conditions.
    Have to count number of resolved defects where issue type is "Defect/Deficiency" & date is "mm/dd/yyy" and then create a graph.

    I used the function as :
    =COUNTIF(Source!B$4:B$500,DAYS360($Q$2,A2))
    where B4:B500 is the resolved date column, Q2 value is 1/1/2012 & A2 is date 3/2/2012

    it gives me the correct count but i need to put one more criteria, as count only those where Source!C$4:C$500 = Defect/Deficiency.

    I tried using
    =COUNT((IF(Source!B$4:B$500="DAYS360(graph!$Q$2,graph!A2)",IF(Source!C$4:C$500="Source!C$4",1,0))))

    and also tried using

    =SUM((IF(Source!B$4:B$500="DAYS360(graph!$Q$2,graph!A2)",IF(Source!C$4:C$500="Source!C$4",1,0))))

    but not getting the answer.

    Any help will be greatful

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count a range with two conditions

    Hi Sam,

    Since you are using Excel2007, try using CountIFs or may be SUMIFs, ... upload a sample file in case of any issues. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-27-2012
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Count a range with two conditions

    Hi DILIP,

    Thanks a lottttttttttttttttt
    COUNTIFS solved the problem.

    Great help

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count a range with two conditions

    You are welcome Sam..

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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