Everyone, I posted the following below yesterday and got help from Yogi and Asala42.
When I posted this, it didn't occur to me that I would want to locate the main string in which the substring is found.
So to summarize: Search for a string (say rang) inside an array of strings placed over a range (say {"apple","orange","lemon"} placed at A1:A3). The command should return the 1st string that it finds a match (in that case this would be "orange")
My yesterday's entry is right below and I also pasted the link to the related discussion.
And as always, thanks a lot.
------------------------------------------
Hi everyone
First let me express my grattitude for everyone taking their time to answer questions on
this board. At least personnally speakig, this board is extremely valuable.
On to question: I know this must be a piece of cake for the experts.
I wish to search for a substring within an array of strings and just return back an indication
that the substring exists withing that array.
so for instance let the substring be "rang"
and let the array be
{"apple","orange","lemon"}.
I wish to put a single command line next to my substring and wish to search through that
range and return a key code if it exists. And then I will repeat the same search for other
substrings. For the moment being, I don't care too much about the number of occurences
or the exact cell address where they occur. All I wish to know is whether they exist in that
list or not.
So it looks to me it is like a SEARCH command but except on a range of text (Rather than
a single text) with an array formula. I have tried MATCH but my case is not an exact match
either.
Any help will be greatly appreciated.
Thanks
http://www.mrexcel.com/board/viewtopic.php?topic=8889&forum=2
When I posted this, it didn't occur to me that I would want to locate the main string in which the substring is found.
So to summarize: Search for a string (say rang) inside an array of strings placed over a range (say {"apple","orange","lemon"} placed at A1:A3). The command should return the 1st string that it finds a match (in that case this would be "orange")
My yesterday's entry is right below and I also pasted the link to the related discussion.
And as always, thanks a lot.
------------------------------------------
Hi everyone
First let me express my grattitude for everyone taking their time to answer questions on
this board. At least personnally speakig, this board is extremely valuable.
On to question: I know this must be a piece of cake for the experts.
I wish to search for a substring within an array of strings and just return back an indication
that the substring exists withing that array.
so for instance let the substring be "rang"
and let the array be
{"apple","orange","lemon"}.
I wish to put a single command line next to my substring and wish to search through that
range and return a key code if it exists. And then I will repeat the same search for other
substrings. For the moment being, I don't care too much about the number of occurences
or the exact cell address where they occur. All I wish to know is whether they exist in that
list or not.
So it looks to me it is like a SEARCH command but except on a range of text (Rather than
a single text) with an array formula. I have tried MATCH but my case is not an exact match
either.
Any help will be greatly appreciated.
Thanks
http://www.mrexcel.com/board/viewtopic.php?topic=8889&forum=2