+ Reply to Thread
Results 1 to 6 of 6

Need Count based on Multiple Criteria

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    iHyd
    MS-Off Ver
    Excel 2003
    Posts
    4

    Need Count based on Multiple Criteria

    I want to display the COUNT of Total Number of Resources based on their Designation and Grade in Grade table (column I) as shown in the attachment.

    Appreciate your help in this regard.
    Last edited by sureshpillitla; 05-11-2012 at 02:09 PM.

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

    Re: Need Count based on Multiple Criteria

    Hi Suresh,

    See the attached file which has been formulated as per your query. thanks.

    Grade Wise Resource Count based on Designations.xlsx

    Regards,
    DILIPandey

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

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Need Count based on Multiple Criteria

    Hi Suresh,

    While Dili's approach will work for the exact values you have in your sample sheet, if the grades in your Designation table change, the formulas will no longer return proper results. It might be easiest to add a helper column onto the Resources table that looks up the Designation for each resource. So in D4 enter:

    =VLOOKUP(C4,$E$4:$F$7,2,0)

    Fill that down to D18. Then in I4 you can just use:

    =COUNTIF($D$4:$D$18,H4)

    Fill that down to I6.

  4. #4
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Need Count based on Multiple Criteria

    you can try this formula in I4 copied down (array formula requires CSE)
    =SUM(--(LOOKUP($C$4:$C$18,$E$4:$E$7,$F$4:$F$7)=H4))

    but your data in designation table needs to be sorted ascending by the designation
    Last edited by mohd9876; 05-11-2012 at 02:45 PM. Reason: forgot to mention that it is an array formula

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Need Count based on Multiple Criteria

    Hi Suresh,

    In I4 with just ENTER, then copy down.

    =SUMPRODUCT(COUNTIF(C$4:C$18,E$4:E$7)*(F$4:F$7=H5))
    Last edited by Haseeb Avarakkan; 05-11-2012 at 09:02 PM.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    05-11-2012
    Location
    iHyd
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need Count based on Multiple Criteria [SOLVED]

    Haseeb,

    Thankyou very much. Your formulae has solved the purpose.

+ 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