Counting number of times a value appears if.. [Solved/Closed]

jensorr - Jun 30, 2009 at 08:44 AM - Latest reply: sambr22
Posts
1
Registration date
Thursday April 21, 2016
Last seen
April 21, 2016
- Apr 21, 2016 at 05:24 AM
Hello,

I conducted a survey in which some questions allowed more than one response.

Using Excel - I'm trying to count the number of times a certain value appears in a column even if there are multiple values in the same cell.

For example: A respondant may have selected answer a, b, d for question 5 (all 3 of these would be in the same cell), while another respondant may have selected answer a, c, d for the same question. For that entire column, I want to know how many times respondants selected "a" regardless of any other selections made.
COUNTIF only counts this response in that column if "a" was the only option selected.

Please help!
Thanks
See more 

7 replies

Best answer
mubashir aziz
Posts
191
Registration date
Sunday April 12, 2009
Last seen
February 16, 2010
- Jul 1, 2009 at 01:38 AM
3
Thank you
Suppose your data is in Column A then paste this formula anywhere or in A12 and Press Ctr+Shift+Enter as this is any Array formula ....... After pressing Ctr+Shift+Enter to enter the formula you will see {} will occur around the formula ={SUM(IF(ISERROR(SEARCH("*a*",A1:A10,1)),0,1))} ... never try to enter {} manually ....


Array Formula : After entering the formula Press Ctrl+Shift+Enter
=SUM(IF(ISERROR(SEARCH("*a*",A1:A10,1)),0,1))












Thank you, mubashir aziz 3

Something to say? Add comment

CCM has helped 1598 users this month

1
Thank you
The array formula works, but it takes too much computer power to calculate and will make the workbook larger in size. Use the COUNTIF formula with the conjunction of the wild card ("*").

IF CELL B1, contains the following values: a, b, c, d, e, f, g
and cell B2, contains the following values: a, b, c, d, e, f, g

You want to know how many times the value "a" shows up in column B across all the cells. The formula to use would be:

=COUNTIF($B:$B,"*"&"a"&"*")

the formula should return quantity of 2, since a is showes up in cell B1 and B2.
this works perfectly!
How do you do it with a cell reference instead of a value. i.e A10 instead of "a"?
rizvisa1
Posts
4481
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
January 6, 2016
- Aug 5, 2010 at 07:41 AM
Mr Excel: Like this
=COUNTIF($B:$B,"*"&A10 &"*")
sambr22
Posts
1
Registration date
Thursday April 21, 2016
Last seen
April 21, 2016
- Apr 21, 2016 at 05:24 AM
Hi, if I have a column of values from an open question on a survey, how can I see:
- what words were said
- how many times each word were said

For instance, a participant may say that they like a TV because it is: cool, smart, useful.
-1
Thank you
doesnt work for me. says thers none of the data im looking for in the cells im searching when there clearly is