Hi All,
I have the follwing formula that will count the number of times a word appears in a range, it is as follows:
How do i get it to search for text within a cell??Please Login or Register to view this content.
Regards
Hi All,
I have the follwing formula that will count the number of times a word appears in a range, it is as follows:
How do i get it to search for text within a cell??Please Login or Register to view this content.
Regards
Gunny
Try this,
=COUNTIF(A:A,"*")
oldchippy
-------------
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
if cell A1 contains 122333 and you want to count that how many times 3 appears in cell A1, try thisOriginally Posted by gunny1979
=LEN(A1)-LEN(SUBSTITUTE(A1,3,""))
hope this is what you asked for.
starguy
Tahir Aziz
PAKISTAN
https://www.facebook.com/businessexcel
__________________
Forum Rules (read before you post)
Links to the world of Excel
Sorry I dont think I explained myslef clearly I was in a bit of rush.
I meant how do I count the number times a word that is placed in a cell appears in a range.
Thanks
for your information
COUNTIF does not count the characters within a cell.
Regards.
sorryOriginally Posted by gunny1979
like this
=COUNTIF(A1:A50,"="&B1)
Hi Starguy,
Thanks for your help
Unfortunatley this will only count the number times it appears exactly!
for intance people could type in info, information etc.
the other codeCounted the instances of info for me, but Ihad to type info into the formulaPlease Login or Register to view this content.
is there a way of doing this for a referenced cell, so users can just type the word they are looking for into a cell??
Thanks
have you tried formula I posted aboveOriginally Posted by gunny1979
i-e
=COUNTIF(A1:A50,"="&B1)
or
=COUNTIF(A1:A50,B1)
Hi Starguy,
I have yes but it only counts the occurences of when it has been typed exactly as it is in the reference cell.
Regards
Hi Gunny,
If you have cells A1:A4
A1 = information
A2 = inform
A3 = form
A4 = info
Try this in B1
=COUNTIF(A1:A4,"info*") result 3. Is that what you are after?
Duplicate post
http://www.excelforum.com/showthread...=1#post1756957
=countif(a1:a50,"*"&b1&"*")
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks