+ Reply to Thread
Results 1 to 6 of 6

counting text across multiple columns with a filter

  1. #1
    Registered User
    Join Date
    06-25-2008
    Posts
    2

    counting text across multiple columns with a filter

    Hi,

    Hope you can help me! I have a spreadsheet with multiple identical columns that contain lists of interventions that employees do with clients (I.e., Intervention 1, Intervention 2, Intervention 3, etc). Each Intervention column contains the same list of 20 interventions. I can use the COUNTIF function to determine the number of specific interventions across these columns; however, I want to filter this by employee. Is there a way to collapse across these columns in a pivot table? Any advice would be greatly appreciated.

    C

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    It sounds like a pivot table or a SUMPRODUCT would work for you but I am unclear as to how your data is set up. Can you upload an example spreadsheet with a few columns and rows?

    ChemistB

  3. #3
    Registered User
    Join Date
    06-25-2008
    Posts
    2
    I have attached a sample ... basically want to know how I can determine the number of times each staff member engages in each intervention. Thanks for your help.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-23-2006
    Posts
    194
    You could add an extra column and use counta(<the data column range>).
    This will count the non-blank cells. Then use a pivot table to do a report summed by user.

  5. #5
    Forum Contributor
    Join Date
    01-23-2006
    Posts
    194
    example attached (also sample3 showing how to do it by 'intervention type' in case it is useful .. they will both need to be in C:\ to run I think)
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Here's a solution using SumProduct. I created a table starting in cell N1. However you said there were 20 interventions and I have 29 or so, so maybe I'm charting the wrong thing. The formula in each cell is similar to this
    Please Login or Register  to view this content.
    where 0$1 is where the Staff team is and $N2 is where the intervention type is.

    ChemistB
    Attached Files Attached Files

+ 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