Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Spreadsheet function that mimics "LIKE"

Is there a spreadsheet function that works like "Like" in VBA? I need to use
a spreadsheet function to identify if a certain pattern exists in a cell for
example:

###.###.####.######.###.##.###

I know this can be done in VBA, as I myself have used it often. But, is
there a spreadsheet function equivalent to "Like"?

If so, please post back with it. Thanks much in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Spreadsheet function that mimics "LIKE"

Hi
have a look at FIND and SEARCH
or use
=IF(COUNTIF(A1,"*text_to_search*")0,"found","not found")

--
Regards
Frank Kabel
Frankfurt, Germany

"quartz" schrieb im Newsbeitrag
...
Is there a spreadsheet function that works like "Like" in VBA? I need

to use
a spreadsheet function to identify if a certain pattern exists in a

cell for
example:

###.###.####.######.###.##.###

I know this can be done in VBA, as I myself have used it often. But,

is
there a spreadsheet function equivalent to "Like"?

If so, please post back with it. Thanks much in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Spreadsheet function that mimics "LIKE"

Thanks Frank, I will have a look.

[I've been coding in VBA for so long, I'm rusty on my functions.]

"Frank Kabel" wrote:

Hi
have a look at FIND and SEARCH
or use
=IF(COUNTIF(A1,"*text_to_search*")0,"found","not found")

--
Regards
Frank Kabel
Frankfurt, Germany

"quartz" schrieb im Newsbeitrag
...
Is there a spreadsheet function that works like "Like" in VBA? I need

to use
a spreadsheet function to identify if a certain pattern exists in a

cell for
example:

###.###.####.######.###.##.###

I know this can be done in VBA, as I myself have used it often. But,

is
there a spreadsheet function equivalent to "Like"?

If so, please post back with it. Thanks much in advance.



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
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Excel 2003: Conditional Formatting using "MIN" & "MAX" function MMangen Excel Discussion (Misc queries) 2 September 16th 08 07:13 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
function to return day in the form "Monday", "Tuesday" etc given . MTro Excel Worksheet Functions 2 October 3rd 07 09:49 AM
When I type "13" the spreadsheet shows "14." Possibilities? Absolutely Stumped Excel Discussion (Misc queries) 7 May 30th 06 10:19 PM


All times are GMT +1. The time now is 02:35 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"