+ Reply to Thread
Results 1 to 5 of 5

CountIf using 2 criteria

  1. #1
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    CountIf using 2 criteria

    Hi Folks,

    I've attached a spreadsheet. In Sheet 2 I want to populate the table in green. So for each date and each criteria on top I want excel to scan Sheet 1 and for Jan-12 return how many of each criteria (from column C) were contained etc. I know how to do this task for numbers with the SUMIF function which allows a sum range section but COUNTIF only allows range and criteria and not count range.
    Can anyone advise?
    Thank you!
    Attached Files Attached Files
    Last edited by controlfreak; 07-16-2013 at 07:23 AM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: CountIf using 2 criteria

    you don't need a count range-each row that meets the criteria is counted as 1

    =COUNTIFS(Sheet1!$F:$F,$J3,Sheet1!$C:$C,K$2)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  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: CountIf using 2 criteria

    In K3 and copy down and across.

    =SUMPRODUCT((MONTH(Sheet1!$F$2:$F$100)=MONTH($J3))*(Sheet1!$C$2:$C$100=K$2))
    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.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: CountIf using 2 criteria

    In K3

    =COUNTIFS(Sheet1!$F:$F,$J3,Sheet1!$C:$C,K$2)

    copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Contributor
    Join Date
    05-20-2009
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    148

    Re: CountIf using 2 criteria

    Thanks guys!!

    I knew I could 'count' on ye!

    (Sorry for the bad excel pun!)

+ 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. Two criteria for CountIf?
    By DB_Bill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-01-2006, 03:55 PM
  2. Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 PM
  3. Countif using format criteria not number criteria?
    By Rumbla76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2005, 01:06 AM
  4. [SOLVED] Countif using format criteria....not number criteria?
    By Troy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2005, 12:06 AM
  5. [SOLVED] countif criteria
    By johnT in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2005, 10:06 PM

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