Text Countifs problem

Wimpie

Board Regular
Joined
Aug 12, 2008
Messages
210
Good day

Please assit wt hthe below
=IF(B7=0,COUNTIFS(Jan!$R:$R,"*"&A7&"*",Jan!$D:$D,$R$1),COUNTIFS(Jan!$R:$R,"*"&A7&"*",Jan!$D:$D,$R$1)*2)

This formula works fine as long as the text A7 does not appear more than oce in a line in column R
e.g if R1 = Cancellation R2 = Cancellaton and A7 is the word cancellation it will count 2, if however,
R1 = Cancellation, Canellaton R2 = Cancellaton and A7 is the word canceltion the formula still gives me 2 an not 3

I need the answer to be 3 irrespective of how the person enters he word,e.g Cancelation Cancelltion, or Cancellarion, Cancellataion, or Cancellation - Cancellation

Would also appreciate it if there is a faster formula that can do this that can be recommended

Thnk you in advance
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This doesn't work with how many time is occurs inside a cell, it just counts IF it is there (at least once)
You should have to add something to check each cell separately for more than one occurrence
The only what is to count the length af the original text minus the length of the text you're looking for.
If the text 'Canc' occurs once the length of the original minus the length of Canc (4) will be 4 less, you will probably have to add a helper column and more.
I am not that good with formulas but there must be a way to count inside each cell too have tried the help in Excel?
 
Upvote 0

Forum statistics

Threads
1,215,418
Messages
6,124,793
Members
449,189
Latest member
kristinh

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