Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Alpha conditional statements

*east does not find Northeast in the following formula:-
=if(a1="*east",a1,"")
What am I doing wrong?
Office XP
Thanks, Dick W
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Alpha conditional statements

Try

=IF(COUNTIF(A1,"*east*"),A1,"")


--


Regards,


Peo Sjoblom

"Dick W." wrote in message
...
*east does not find Northeast in the following formula:-
=if(a1="*east",a1,"")
What am I doing wrong?
Office XP
Thanks, Dick W



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Alpha conditional statements

Maybe

=IF(SEARCH("east",A1,1),A1,"")

Mike

"Dick W." wrote:

*east does not find Northeast in the following formula:-
=if(a1="*east",a1,"")
What am I doing wrong?
Office XP
Thanks, Dick W

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Alpha conditional statements

That will throw an error if it doesn't find anything, you have to wrap it in
either ISNUMBER or ISERR/ISERROR


=IF(ISNUMBER(SEARCH("east",A1,1)),A1,"")


--


Regards,


Peo Sjoblom

"Mike H" wrote in message
...
Maybe

=IF(SEARCH("east",A1,1),A1,"")

Mike

"Dick W." wrote:

*east does not find Northeast in the following formula:-
=if(a1="*east",a1,"")
What am I doing wrong?
Office XP
Thanks, Dick W



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Alpha conditional statements

Thanks Peo and Mike your help is much appreciated.
Dick W.

"Peo Sjoblom" wrote:

That will throw an error if it doesn't find anything, you have to wrap it in
either ISNUMBER or ISERR/ISERROR


=IF(ISNUMBER(SEARCH("east",A1,1)),A1,"")


--


Regards,


Peo Sjoblom

"Mike H" wrote in message
...
Maybe

=IF(SEARCH("east",A1,1),A1,"")

Mike

"Dick W." wrote:

*east does not find Northeast in the following formula:-
=if(a1="*east",a1,"")
What am I doing wrong?
Office XP
Thanks, Dick W




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
If Statements - Pick up Alpha Characters Louise Excel Discussion (Misc queries) 8 June 30th 08 03:30 PM
Conditional If Statements maxcw Excel Worksheet Functions 2 June 23rd 08 05:22 AM
Conditional statements james Excel Worksheet Functions 9 January 7th 08 03:07 PM
Conditional Statements Robert Albrecht Excel Discussion (Misc queries) 2 October 3rd 06 08:29 PM
The colums changed from alpha to numeric how do you make it alpha worldmade Excel Discussion (Misc queries) 2 May 26th 05 03:44 PM


All times are GMT +1. The time now is 03:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"