Hi all,
11.PNG
Have problem using countif.
For example to get NUMBER 11, answer is incorrect when there's a comma
Hi all,
11.PNG
Have problem using countif.
For example to get NUMBER 11, answer is incorrect when there's a comma
And what number do expect as a result and how did you arrived at it?
By my calculations the answer is 15
=SUM(IF(LEN(A1:A24)-LEN(SUBSTITUTE(A1:A24,",",""))>0,LEN(A1:A24)-LEN(SUBSTITUTE(A1:A24,",",""))+1,0))
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
Row\Col A B C 1 12 2 11 15 3 12 4 7,22 5 16 6 11 7 8 11 9 10 11 11 6 12 10 13 14 26 15 1 16 25 17 18 10,11 19 1,11 20 10 21 4 22 22,23,25 23 21 24 9,10,11,12,13,14
Last edited by AlKey; 10-28-2014 at 11:56 PM.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
This is actually answer that answered by the client.
My objective is to get ( total of how many people selected answer for example number "11" )
in this case 11 = 7
=countif[range][criteria] couldnt give me the correct answer
Perhaps:
Put criteria in C1 (ie.11) and put this ind D1 :
=COUNT(SEARCH(C1,SUBSTITUTE(A1:A24,","," ")))
Using array formulas.
Countif will do it
=SUM(COUNTIF(A1:A24,{11,"*,11","*11,*"}))
Last edited by :) Sixthsense :); 10-29-2014 at 12:45 AM.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks