+ Reply to Thread
Results 1 to 6 of 6

How to sort and count?

  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    Singapore
    Posts
    3

    How to sort and count?

    Dear all

    This is my first visit to your forum and I am very impressed with the amount of knowledge being shared.

    I am facing a hurdle and hope someone can help me.

    I have a huge chunk of personnel data of which are broken up into many groups. Within each group there are two sub groups and all personnel are graded with Scores 5, H4, 4, L4, 3 respectively.

    I need to count under each Main Group, Group A how many people have scored 5s, H4, 4, etc and likewise for Group B.

    Please find attached a working spreadsheet with one Main Group and I would like to thank in advance for the help rendered.
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi Geeesus, and welcome to the forum.

    First, change the values in C19:G19 to simply 5, H4, 4, L4 and 3.

    Then in C20, use the formula:

    =SUMPRODUCT(($D$4:$D$17=$B20)*($G$4:$G$17=C$19))

    Fill that to the right to G20, then fill it down to C21:G21. That should do it.

    Hope that helps!

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    I think this is what you need


    Please Login or Register  to view this content.
    *Press Ctrl + Shift + Enter.
    I need your support to add reputations if my solution works.


  4. #4
    Registered User
    Join Date
    11-04-2008
    Location
    Singapore
    Posts
    3
    Dear Paul

    Thanks a Million! You have helped solved a real headache for me!!!!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    You could select the cells C19, E19 & G19, then select FORMAT > Cells > Custom > and manually type in:

    "Score "#

    Then select D19 & F19 and format them to show:

    "Score "@

    Now, even though you only type 5 in cell C19, it will show Score 5 like you're used to seeing, etc...

    (This is intended to be used with PJOAQUIN's answer)
    Last edited by JBeaucaire; 11-04-2008 at 10:21 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    11-04-2008
    Location
    Singapore
    Posts
    3
    Thanks SG Life.... your tip has worked greatly also!

+ 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