Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2005

Tip: Looking for answers? Try searching our database.

Finding words

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
laurag - 14 Dec 2005 10:42 GMT
Hi.

I'm looking for a fonction or a macro to know if, in a reaserch, the
excel found or if he didn't find what a asked (I use function find at
text category to find words).

Exemple:
If he found at least 1 element, he returns 1.
If he found nothing, he returns 0.

Can you help me?

thanks

Signature

laurag

Dave Peterson - 14 Dec 2005 15:23 GMT
Maybe you can use =countif()

If you're looking for "research" anywhere in a1:A10, you could use:

=if(countif(a1:a10,"research")>0,1,0)
if "research" could be part of a longer string within any of those cells:
=if(countif(a1:a10,"*"&"research"&"*")>0,1,0)

> Hi.
>
[quoted text clipped - 15 lines]
> laurag's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29625
> View this thread: http://www.excelforum.com/showthread.php?threadid=493325

Signature

Dave Peterson

Bernie Deitrick - 14 Dec 2005 15:29 GMT
Laura,

=COUNTIF(A:A, "Laura")
to count cells that are exactly Laura in column A, or
=COUNTIF(A:A, "*Laura*")
to count cells that contain Laura in column A.

HTH,
Bernie
MS Excel MVP

> Hi.
>
[quoted text clipped - 9 lines]
>
> thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.