count of words in multiple cell range

Justyna82

New Member
Joined
Sep 1, 2014
Messages
18
I am working on the spreadsheet which contains different words in cells range and I would like to count only particular combination of the word, here we go, example:
I only would like to count entries which includes: ended and multiple and last. I have tried countifs formula but I got to the point where I counted all entries with ended, multiple, last. Please bear in mind that some of the cells are empty. I would be really appreciated of your help. Many thanks.j.

Customerservice endedservice was multiple/singlelast entry
1endedMultiplelast
2Multiplelast
3endedMultiplelast
4endedSinglelast
5Single
6EndedSinglelast
7EndedMultiple
8MultipleLast
9endedMultipleLast

<tbody>
</tbody>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Give this formula a try (change the ranges to match your actual data layout)...

=COUNTIFS(B2:B10,"ended",C2:C10,"Multiple",D2:D10,"last")
 
Upvote 0
And I checked few times now, and I do have this kind of entries!!! Cant understand why this formula not bringing any results??
 
Upvote 0
I tried this one already and it brings 0...I am not sure if maybe it needs AND?
No, COUNTIF does not make use of logical operators. I will tell you that the formula worked on my system when I copy/pasted what you posted in Message #1 into cells A1:D10 on my worksheet, so I know the formula works. You might try doing that on a new worksheet to prove to yourself the formula works properly. Next, you should check your entries on your original data to make sure there are not spaces attached to the values you are checking. This formula will tell you quickly if you have spaces or not... if it works correctly (returns 3 for your example data), then you have spaces is at least one columns worth of entries.

=COUNTIFS(B2:B10,"*ended*",C2:C10,"*Multiple*",D2:D10,"*last*")
 
Upvote 0
Could that be because behind the words there is different formula???
The formula should work whether the words are constants or the result of formulas. Did you try the formula I posted in Message #6? Did it work?
 
Upvote 0
CustomerMultiple/ single
1Single
2MultipleX
2single
3MultipleX
3Multiple
3Multiple
4MultipleX
4Multiple
4Multiple

<tbody>
</tbody>
I actually noticed other error or rather mistake in my other formula, example of the current results below. i used this formula: =if(a2=a1, "multiple", if(a2=a3,"multiple","single")) However this formula brings incorrectly multiples and i am not sure why? Think something isnt right with the first part... really thanks for help!!!!!! :) i hope this make sense....
 
Upvote 0
Idid, yes but than I noticed the error in the formula I posted recently. I think if that resolved I will achieve the desire outcome...
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,028
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top