Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default search for text "beginning with" "containing" wildcards

I have numerous occasions where functions (like countif) need to report on
cells containing text strings or starts with text strings.

In various database utilities there are wildcards which provide this
functionality, but what about in Excel, do any wildcards work ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default search for text "beginning with" "containing" wildcards

In some functions, they do:

=countif(a1:a10,"text*")
=countif(a1:a10,"*text")
=countif(a1:a10,"*text*")

And you can use
"*" & x99 & "*"
as the second argument.

If you want to look for an asterisk character, use ~* in the string.
If you want to look for a question mark, use ~? in the string.
If you want to look for a tilde (~), use ~~ in the string.




David H wrote:

I have numerous occasions where functions (like countif) need to report on
cells containing text strings or starts with text strings.

In various database utilities there are wildcards which provide this
functionality, but what about in Excel, do any wildcards work ?


--

Dave Peterson
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(ISNUMBER(SEARCH("ELB",B2)),"Pipe") add more like "ELB" "FLG" MAHMOUD Excel Worksheet Functions 5 September 6th 09 06:04 PM
=IF(ISERROR(SEARCH("insurance",A125,1)),"","*") cynichromantique Excel Worksheet Functions 9 September 25th 08 09:49 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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


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