Question
In a column where each cell has multiple text values separated by commas, I want to count specific values. Do you know a way to do this?
Background
I'm in charge of a spreadsheet that tracks projects. On the spreadsheet's DATA worksheet, the project names are listed in the first column and the projects' status---In progress, On hold, Red flag, Complete---is entered in the Status column in the same row as the project name. On another worksheet, I use the COUNTIF function to count the data in the Status column (on the DATA worksheet) and build a chart from the results. For example, if the Status column is the E column, I will have a series of functions that say =COUNTIF(DATA!E2:E100,":$In Progress"), =COUNTIF(DATA!E2:E100,":$On Hold"), =COUNTIF(DATA!E2:E100,":$Red flag"), etc, to get the numbers to build the chart. This works fine.
The problem
Another column titled Resources lists, in each cell, the names of individuals working on a project. Typically, data is entered into the cells in this column as "Bill, George" and "Tom, Bill, George", and "Tom, George, Mary, Bill". I want to count the number of times that, say, Bill has appeared in the Resources column for the purpose of counting how many projects Bill is on. To do this, I have tried to use the COUNTIF function in combination with separating the values in the cell with commas. This doesn't work. Is there any way of separating these values so the COUNTIF function can pattern match specific values, to find, say, Bill and ignore the others?
If COUNTIF can't be used, I am thinking of trying a series of IF functions to return a value of TRUE if, say, Bill appears, or George appears, etc, but I don't know how to count the results to get the numbers to build a chart.
Any advice is welcome.
Bookmarks