ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Limelight Media - ExcelTip.com Books > F1 Get the most out of Excel Formulas & Functions

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-06-2007, 12:34 PM
jonasa jonasa is offline
Registered User
 
Join Date: 20 Feb 2006
Posts: 7
jonasa is on a distinguished road
Using IF with wildcards

How do you do this?
in A1
John Andersson
or
Peter Johnsson
or
Peter johnsson

If i want to find if there is a occurence of "john" inside these strings how do I do that??

IF(A1=contains("john"),"true","false")

should return the value "true" for both above.

is this possible?? Is there some kind of "contains" functionality??

/J
Reply With Quote
  #2  
Old 08-06-2007, 04:30 PM
daddylonglegs's Avatar
daddylonglegs daddylonglegs is offline
Forum Moderator
 
Join Date: 14 Jan 2006
Location: England
Posts: 4,920
daddylonglegs will become famous soon enough daddylonglegs will become famous soon enough
Try

=ISNUMBER(SEARCH("john",A1))
Reply With Quote
  #3  
Old 08-06-2007, 05:54 PM
oldchippy's Avatar
oldchippy oldchippy is offline
"Eagle Eyed" Forum Moderator
 
Join Date: 14 Feb 2005
Location: Worcester, UK
Posts: 5,924
oldchippy will become famous soon enough oldchippy will become famous soon enough
If you are looking for "john" and not "John", then you could use

=ISNUMBER(FIND("john",A1))

The FIND function is case sensitive.
__________________
oldchippy
-------------


Click here >>> Top Excel links for beginners to Experts

Forum Rules >>>Please don't forget to read these
Reply With Quote
Reply

Bookmarks

New topics in F1 Get the most out of Excel Formulas & Functions


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 10:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0