Re: If then statement to search for text possible?
- From: "Ken Wright" <ken.wright@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 21:52:21 -0000
Think I was braindead :-(
Cheers Dave
Regards
Ken...............
"Dave Peterson" <petersod@xxxxxxxxxxxxxxxx> wrote in message
news:43DEB821.469AECEA@xxxxxxxxxxxxxxxxxxx
>I bet you meant:
> =if(countif(a3,"*hou*"),"houston",0)
>
> Ken Wright wrote:
>>
>> =IF(SEARCH("*HOU*",A3),"Houston",0)
>>
>> --
>> Regards
>> Ken....................... Microsoft MVP - Excel
>> Sys Spec - Win XP Pro / XL 97/00/02/03
>>
>> ----------------------------------------------------------------------------
>> It's easier to beg forgiveness than ask permission :-)
>> ----------------------------------------------------------------------------
>>
>> "Steve" <Steve@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:FB1699A5-7665-4779-8878-272568F68939@xxxxxxxxxxxxxxxx
>> >I was wondering if there is a way to write an if statement like this:
>> >
>> > =if(a1="*HOU*", "Houston",0)
>> >
>> > So that if the text in cell A1 contains "HOU" then it would return
>> > "Houston".
>> >
>> > I know it works if the cell is an exact match, but what about if it
>> > only
>> > contains the word???
>> >
>> > HELP!
>> >
>> > Thanks!
>
> --
>
> Dave Peterson
.
- References:
- Re: If then statement to search for text possible?
- From: Ken Wright
- Re: If then statement to search for text possible?
- From: Dave Peterson
- Re: If then statement to search for text possible?
- Prev by Date: Re: Formula to show PC name, or IP, or personal windows ID
- Next by Date: Please Help!
- Previous by thread: Re: If then statement to search for text possible?
- Next by thread: Re: If then statement to search for text possible?
- Index(es):
Relevant Pages
|