+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Using Countifs to count muliple criteris from the same column?

  1. #1
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Using Countifs to count muliple criteris from the same column?

    Hi All,



    Trust you all have a great Festive Season.



    I have been doing a Countifs to obtain the number of times a job has been done in a month, by 2 certain criteria, on a single action?



    Basically in 1 column I will have a list of months

    2nd column will have a list of action ie Operator, Repair Outsource

    3rd column number of action per job.



    I need to count how many jan jobs were Repair and Operator with 1 action on.



    I hope this makes sense.



    I can use the countifs to obtain the month, actions, but only 1 of repair or Operator, how can I get both the Operator and repair jobs in a single count.



    I have attached an example for you to play with



    Looking forward to your suggestions



    Donna
    Attached Files Attached Files
    Last edited by Icehockey44; 01-10-2012 at 10:44 AM. Reason: fantastically solved by fotis1991

  2. #2
    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: Using Countifs to count muliple criteris from the same column?

    Hi

    Maybe this?

    =SUMPRODUCT(($A$2:$A$6="JAN")*($B$2:$B$6="OPERATOR")*($C$2:$C$6))+SUMPRODUCT(($A$2:$A$6="JAN")*($B$2:$B$6="REPAIR")*($C$2:$C$6))

    Hope to helps you.
    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.

  3. #3
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Using Countifs to count muliple criteris from the same column?

    Hi Fotis1991,

    thanks for your suggestion, works a treat, but my example was a poor one!!!

    where you have ($C$2:$D$6) part of the forumla, can I ask it to only look for the number 1's. So if in my example if we changed cell C2 to 2 rather than 1, the answer would be 1, but with this formula it would just add all the repair and Operator together, thus giving 2.

    I hope this makes sense.

    Once again it has helped, just a poor example given!!!

    cheers

    Donna

  4. #4
    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: Using Countifs to count muliple criteris from the same column?

    So Donna, if i understoond well your point, you like to COUNT, NOT add.

    So try this.

    =SUMPRODUCT(($A$2:$A$6="JAN")*($B$2:$B$6="OPERATOR")*($C$2:$C$6=1))+SUMPRODUCT(($A$2:$A$6="JAN")*($B$2:$B$6="REPAIR")*($C$2:$C$6=1))

    Hope to be OK, now.

  5. #5
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Using Countifs to count muliple criteris from the same column?

    Excellent, works a treat.

    Where you have typed in the month, can you use the cell reference instead?

  6. #6
    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: Using Countifs to count muliple criteris from the same column?

    Yes you can do it!

    =SUMPRODUCT(($A$2:$A$6=A2)*($B$2:$B$6="OPERATOR")*($C$2:$C$6=1))+SUMPRODUCT(($A$2:$A$6=A2)*($B$2:$B$6="REPAIR")*($C$2:$C$6=1))

  7. #7
    Forum Contributor
    Join Date
    08-26-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Using Countifs to count muliple criteris from the same column?

    Brilliant Fotis1991,

    that has also worked a treat, as is now live on my Dashboard!!!

    You have been amazing today fotis, thanks you very much for your help.

    Donna

  8. #8
    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: Using Countifs to count muliple criteris from the same column?

    You are welcome! Glad to helped you!

+ 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