Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Text Search in an Array
The SEARCH and FIND functions in Excel allow me to find text strings within a
single cell. Is there a function that would allow me to search for a text fragment in an array of cells? The text fragment may be embedded in a longer string (i.e., it would likely not be an exact match), so I dont think that the LOOKUP functions could be employed. -- Jay |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Text Search in an Array
You can use wildcards with your =match() formula:
=isnumber(match("*" & "somestring" & "*", a1:A999, 0)) or =countif(a1:x99,"*" & "somestring" & "*") If you're working with strings, you could use "*somestring*". But if you're holding that value in a cell, you can just replace "somestring" with that cell's address: =countif(a1:x99,"*" & z99 & "*") Jay wrote: The SEARCH and FIND functions in Excel allow me to find text strings within a single cell. Is there a function that would allow me to search for a text fragment in an array of cells? The text fragment may be embedded in a longer string (i.e., it would likely not be an exact match), so I dont think that the LOOKUP functions could be employed. -- Jay -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Text entries behaving like numbers | Excel Discussion (Misc queries) | |||
search for date in long string of text | Excel Discussion (Misc queries) | |||
Search for first instance of text & return the value | Excel Worksheet Functions | |||
How do I search for specific text and sum the cell to the right? | Excel Worksheet Functions | |||
Formulas dealing with text data | Excel Worksheet Functions |