searching for words using countif

bouthie

New Member
Joined
May 28, 2009
Messages
2
Much appreciation to the geniuses out there.

I have a list of words i want to count in an array of phrases

I don't care about case sensitive but I do want only whole words

Sample list in column -A-
-A-
of
and
I
the
fun


sample array in columns -E- and -F-


-E---------------------------------F-
on top of the hill and fun----------I have fun
The cow is red --------------------sand


I have tried many variations of =COUNTIF(E2:F3,"*"&A3&"*") However this returns 2 for "sand" and "and"

I also tried

SUMPRODUCT((LEN(range)-LEN(SUBSTITUTE(range,A2,"")))/LEN(A2))

How do I count only whole words? I hope this is clear and specific enough.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Welcome to the Board.

Perhaps the below will be of interest ?

Excel Workbook
ABCDEF
1of1on top of the hill and funI have fun
2and1The cow is redsand
3I1
4the2
5fun2
Sheet3
 
Upvote 0
DonkeyOte,

You my friend are freakin' Awesome. Many thanks. Beverage on me if you ever come to Monterrey, Mexico.
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,185
Members
449,071
Latest member
cdnMech

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