Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Peter Rooney
 
Posts: n/a
Default Checking for the existence of a characted in a string

Whilst I'm being lazy, what's the best way to check for the existence of a
character (say "-") in a string?

My brain's gone to sleep this afternoon - sorry, y'all!
Thanks in advance

Pete
  #2   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default Checking for the existence of a characted in a string


say you want to check ; in a cell, following formula will return yes if
it finds and no if it did not.

=IF(ISERROR(FIND(";",A1)),"not","yes")


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=553633

  #3   Report Post  
Posted to microsoft.public.excel.misc
Peter Rooney
 
Posts: n/a
Default Checking for the existence of a characted in a string

Good morning,
This works a treat.
Thanks very much

Pete

"starguy" wrote:


say you want to check ; in a cell, following formula will return yes if
it finds and no if it did not.

=IF(ISERROR(FIND(";",A1)),"not","yes")


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=553633


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
Browse File for Mac John Vickers Excel Discussion (Misc queries) 1 February 17th 06 06:23 PM
Auto convert an alphanumeric string (CIS9638S) to numbers only? Gary L Brown Excel Worksheet Functions 1 September 7th 05 01:17 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 09:16 PM.

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

About Us

"It's about Microsoft Excel"