#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Wildcards

Can we use wildcards in an IF function?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Wildcards

Sorry, we cannot use wildcards in IF function.


--
Kind Regards
Colo
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Colo of 'The Road of The Cell Masters' :)

URL:http://www.interq.or.jp/sun/puremis/...astersLink.htm


/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

"HELP ME PLEASE!" wrote in message
...
Can we use wildcards in an IF function?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Wildcards

anonymous,

Please at least post with a first name. It makes it seem more personal.
(It doesn't have to be your real name either)

For a formula solution, try this:
Type the text "Wildcard" into A1

=IF(ISERROR(SEARCH("*ldca*",A1)),"NG","OK")

If you're looking for a VBA solution, this might work for you.
By nature of the way the INSTR function works, it'll check
for the presence of one string within another. There is no
"wildcard", per se, but if the string that you're looking for
appears within the searched string, it'll give you the position
of where the match was found (which will always be greater
than zero.

Sub TestMe()
If (InStr(1, Range("A1"), "ildca")) 0 Then
MsgBox "Match"
Else
MsgBox "No Match"
End If
End Sub

John

"HELP ME PLEASE!" wrote in message
...
Can we use wildcards in an IF function?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Wildcards

If you mean in VBA, probably not, but
Look at VBA help for LIKE, INSTR, MID, LEFT, RIGHT

--
Regards,
Tom Ogilvy

"HELP ME PLEASE!" wrote in message
...
Can we use wildcards in an IF function?



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
Wildcards and if Arlene Excel Worksheet Functions 3 June 21st 07 12:05 AM
Wildcards irresistible007 Excel Worksheet Functions 2 December 20th 05 10:12 AM
wildcards in vba shellshock Excel Discussion (Misc queries) 3 July 21st 05 07:37 PM
VBA Wildcards - HELP! Co-op Bank Charts and Charting in Excel 1 March 30th 05 02:37 PM
Wildcards john Petty Excel Programming 3 August 22nd 03 08:57 PM


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