+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Countif with AND condition

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    Waterloo, Iowa
    MS-Off Ver
    Excel 2007
    Posts
    1

    Countif with AND condition

    I need a formula that will allow me to count the number of occurances when the date in column A is within a certain month AND if when the corresponding cell in row N does not contain an x.

    For example:

    A N
    13-Jan x
    19-Jan
    11-Feb x
    11-Feb
    11-Feb
    14-Feb x
    16-Mar
    11-May

    The formula should give me 1 for January and 2 for February. I have tried multiple countif and sumproduct statements and nothing is working.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Countif with AND condition

    Try: =SUMPRODUCT((MONTH($A$2:$A$9)=1)*($B$2:$B$9=""))

    Change 1 to the required month number or cell ref.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

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

+ 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