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 / September 2006

Tip: Looking for answers? Try searching our database.

If Statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 24 Sep 2006 18:52 GMT
Hi  In an If styatement, how would I go about testing to see if a cell
contained a text string please
- If (E2="*Phone","True","False"), which is what I assumed the syntax was,
doesm't work

Thanks
A
joeu2004@hotmail.com - 24 Sep 2006 19:11 GMT
> Hi  In an If styatement, how would I go about testing to see if a cell
> contained a text string please
> - If (E2="*Phone","True","False"), which is what I assumed the syntax was,
> doesm't work

One way:

=if(iserror(find("Phone",E2)), "false", "true")

Use SEARCH() if you want a case-insensitive match.
Bob Phillips - 24 Sep 2006 20:19 GMT
=ISNUMBER(SEARCH("phone",E2))

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> Hi  In an If styatement, how would I go about testing to see if a cell
> contained a text string please
[quoted text clipped - 3 lines]
> Thanks
> A
Alex - 26 Sep 2006 19:25 GMT
Thanks Both

> Hi  In an If styatement, how would I go about testing to see if a cell
> contained a text string please
[quoted text clipped - 3 lines]
> Thanks
> A
 
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.