+ Reply to Thread
Results 1 to 6 of 6

Need Help with COUNTIF Referencing Specific Columns

  1. #1
    Registered User
    Join Date
    09-01-2016
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    6

    Need Help with COUNTIF Referencing Specific Columns

    Our company did a strengths finder quiz and I am trying to consolidate the results. My current spreadsheet is formatted as below:


    Name 1 Name 2 Name 3
    Team of Name 1 Team of Name 2 Team of Name 3
    Strength 1 Strength 1 Strength 1
    Strength 2 Strength 2 Strength 2
    Strength 3 Strength 3 Strength 3
    Strength 4 Strength 4 Strength 4
    Strength 5 Strength 5 Strength 5


    Each person's results are in its own column, with about 30 columns of results (30 employees). While names are unique, there is overlap on the teams. I'd like to make a table that counts the frequency of each result for each team (i.e.: Operations) and matches it against a list of the possible strengths (that way the table can be sorted to show the most frequently occurring strengths on the team).

    The current formula I am using is as follows:
    =COUNTIF(INDEX('Company Results'!$B$5:$BA$9,0,MATCH("Operations",'Company Results'!$B$4:$BA$4,0)),[@Strength])

    It seems to only count the strengths for the first person that meets the team criteria, though I am looking for a function that finds the sum of all employees within that team. Also, I can't seem to use a Pivot Table only because there are two subheaders per person (their name and team) before the results. Any ideas? Thanks in advance!

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Need Help with COUNTIF Referencing Specific Columns

    Calculate individual totals first using sumif and then sum up according to the teams again using sumif.

    Individual Count (array formula)-
    Please Login or Register  to view this content.
    Team Count-
    Please Login or Register  to view this content.

    excelforum003.xlsx

    Regards
    Sourabh
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    09-01-2016
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    6

    Re: Need Help with COUNTIF Referencing Specific Columns

    Hi Sourabh,

    Thank you for your quick response! I tried following your steps, but couldn't get it to work quite right (and it is likely my fault, but figured I'd check in again just in case).

    It seems that the sum and sumif functions consolidated all "strengths" rather than counting each one. I am attaching the actual document I am working on for clarification.

    On the "Programs Team Analysis" sheet, I have a table set up to count how many time each strength occurs across the team (refer to column B for the count; this is referencing the strengths that appear in column A). As you can see, it is currently only counting the strengths from Person 1 (located on the "Company Results" sheet). When I tried using sum/sumif, it ended up summing up all strengths into a single number rather than breaking them apart.

    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Need Help with COUNTIF Referencing Specific Columns

    Sorry I misinterpreted your question.

    Use this formula in Cell B2-
    Please Login or Register  to view this content.
    Formula to be entered as array formula by pressing Ctrl+Shift+Enter instead of just enter.

    Check attached.
    Final StrengthsFinder2.xlsx

  5. #5
    Registered User
    Join Date
    09-01-2016
    Location
    Philadelphia, PA
    MS-Off Ver
    2016
    Posts
    6

    Re: Need Help with COUNTIF Referencing Specific Columns

    Quote Originally Posted by sourabhg98 View Post
    Sorry I misinterpreted your question.

    Use this formula in Cell B2-
    Please Login or Register  to view this content.
    Formula to be entered as array formula by pressing Ctrl+Shift+Enter instead of just enter.

    Check attached.
    Attachment 489949


    Thank you so much - this worked perfectly!

  6. #6
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Need Help with COUNTIF Referencing Specific Columns

    Glad to know that helped

    If your query is resolved kindly mark the thread as solved from the "Thread Tools" at the top of this page.
    You can also click on "add reputation" to add to the reputation of someone who has helped

    Regards
    Sourabh

+ 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. Referencing the next empty cel in a specific row starting at a specific point
    By Toddiman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2015, 07:52 PM
  2. Using =SUMIF,=COUNTIF, and =AVERAGE to find specific values in columns
    By ExcelNub83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2015, 07:53 PM
  3. COUNTIF works only in specific columns
    By PastorP in forum Excel General
    Replies: 3
    Last Post: 09-05-2014, 04:44 AM
  4. [SOLVED] CountIf Date Equals Specific "Month" Across Multiple Columns
    By molson1973 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2014, 01:12 PM
  5. [SOLVED] COUNTIF <>= Referencing a specific cell
    By nighthalcyon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2013, 12:52 PM
  6. Replies: 8
    Last Post: 04-04-2013, 08:02 PM
  7. COUNTIF using # ranges, and referencing 2 other columns
    By crafty_girl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-27-2006, 02:30 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