The formula I suggested can be entered into any unused cell.
It assumes that the range that contains your multiple name entries is A2 to
A100.
Change that to E2:E100, which you stated here is your current range.
Do that change in both places in the formula.
The formula also assumes that you will enter the name you're looking to
"match" into cell C1.
That you can change to whatever cell you will use for that purpose.
This formula is case sensitive, so you must enter "Roger" in C1 *exactly* as
it's entered in your data column (upper case R).
Try this out and see if it works for you.
A formula that works around the case sensitivity, *BUT* counts *any* name
that might *contain* the looked for name (Fred will count frederick, alfred,
wilfred, freddy, ... etc.) is:
=SUMPRODUCT(LEN(E2:E100)-LEN(SUBSTITUTE(UPPER(E2:E100),UPPER(C1),"")))/LEN(C
1)
Does this clear up your questions?
--
HTH,
RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
"terrydunne" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
Thanks for the help. It took me awhile to get back to you because I
needed to update the project status spreadsheet about which I messaged
this user forum. If you recall, I wanted to count the number of
projects each person had in my department. I did not understand how to
use the solution you proposed so I used a crude solution of creating a
separate table, outside the main data table, that paired individual's
names in column headers with project names in row headers and then
inserted the word "Yes" where project and name met (if a particular
person was actually associated with a particular project). I then used
the COUNTIF function to count the instances of "Yes" to come up with a
project count for each individual. From that data I created an
impressive pie chart that was received well.
However, I would like to do this more elegantly and more dynamically.
What I don't understand about the solution you sent is where to put,
and how to count, the pattern match I am looking for. If you recall, I
am looking to match, say, the name "Roger" in a column titled
"Resources" (E2:E100) where the individual cells may have entries like
"Jim, Mary, Roger, Joe" and then count the number of times "Roger"
appears in the column and create a pie chart from the results.
To be more clear, if only the name "Roger" appeared in the cell it
would be an easy matter to count the instances of "Roger" in the
Resources column by using the COUNTIF function in a separate table that
referenced the Resources column. It's the fact that "Roger" is paired
with other names that makes the COUNTIF function useless and requires a
more sophisticated solution.
I appreciate your help in this matter and regret that I don’t
understood the solution you sent. If you can provide any additional
help, it is certainly welcome.
Thanks,
Terry
--
terrydunne
------------------------------------------------------------------------
terrydunne's Profile:
http://www.excelforum.com/member.php...o&userid=25160
View this thread:
http://www.excelforum.com/showthread...hreadid=386610