+ Reply to Thread
Results 1 to 12 of 12

Help needed to perform COUNT based on multiple criteria

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Help needed to perform COUNT based on multiple criteria

    I need to display the COUNTS of all 5's per sales code per department per manager in the FIVES column
    as shown in the attachment.

    Appreciate your help in this regard.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-25-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Help needed to perform COUNT based on multiple criteria

    HI,

    Please included formula to get the count of fives in fives column.

    =COUNTIF(G5:L5,"5")

    Please reply, if you are satisfied.

  3. #3
    Registered User
    Join Date
    06-25-2012
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help needed to perform COUNT based on multiple criteria

    Thanks Banuchnader, how ever it won't solve my problem. Your formula gives the count of all fives, but I need the count of fives per Manager per department per Sales code...

  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: Help needed to perform COUNT based on multiple criteria

    Hi

    Do you mean?

    =SUMPRODUCT(($G$5:$L$10=5)*($E$5:$E$10=E5)*($D$5:$D$10=D5))

    If NO, pls tell us which are the corect results in column M?
    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.

  5. #5
    Registered User
    Join Date
    06-25-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Help needed to perform COUNT based on multiple criteria

    Hi,

    I think we need to given the four different formulas in M5,N5,O5 & P5 to get counts of 5's per sales code per department per manager
    untitled.JPG
    =COUNTIF(G5:L5,5)
    =SUMIF(E:E,E5,M:M)
    =SUMIF(D:D,D5,M:M)
    =SUMIF(C:C,C5,M:M)
    Last edited by Banuchander; 06-26-2012 at 11:39 AM. Reason: correct spelling

  6. #6
    Registered User
    Join Date
    06-25-2012
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help needed to perform COUNT based on multiple criteria

    Thanks Fotis!!! the formula worked on my sample sheet and it displayed the correct values. Now when I tried the same formula on another sheet it there I can see that it worked from the fx window but it is not displaying the result on sheet in the cell, why? I really apprecaite your help!!!

  7. #7
    Registered User
    Join Date
    06-25-2012
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help needed to perform COUNT based on multiple criteria

    Thanks Banuchander!!! I will try this too. Fotis suggested SUMPRODUCT and it is getting the result but not displaying the value on the sheet.

  8. #8
    Registered User
    Join Date
    06-25-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Help needed to perform COUNT based on multiple criteria

    I attached my the excel sheet i worked for your better understand.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-25-2012
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help needed to perform COUNT based on multiple criteria

    Quote Originally Posted by Banuchander View Post
    I attached my the excel sheet i worked for your better understand.
    Hi Banuchander, I tried your appraoch but the result is not being displayed. The cell shows the formula itself, any suggestions? Thanks!

  10. #10
    Registered User
    Join Date
    06-25-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Help needed to perform COUNT based on multiple criteria


    Hi mat, I think you need to press ctrl+~ which is used for show or hide the formula's

  11. #11
    Registered User
    Join Date
    06-25-2012
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Help needed to perform COUNT based on multiple criteria

    PROBLEM SOLVED. Thanks Fotis1991!!!!Thanks Banuchander!!!!

    I want to mark it as Solved but I don't see Solved under 'Thread Tools'

    This is a Great forum!! Keep up the good work every one!!!!!!

    Have a Nice Day!!


    -Mattzz

  12. #12
    Registered User
    Join Date
    06-25-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Help needed to perform COUNT based on multiple criteria

    Thanks Matt to give a chance to refreshing our excel knowledge.

+ 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