Search range
If there's more than 1 instance then it gets complicated. I'm getting ready
to break for dinner so I'll be away for a few hours but I'll post a solution
when I return (unless someone else chimes in while I'm gone).
--
Biff
Microsoft Excel MVP
"johnrb7865" wrote in message
...
1 more quick one. Is there a way to tell it that once it found the text,
look
for the next instance? There could be more than 1 match and I need each of
the corresponding numbers placed in a column.
Thanks,
John
"T. Valko" wrote:
Yes, I know I could've used SUMIF but I'm working on the assumption the
value to be returned could be either numeric or text.
--
Biff
Microsoft Excel MVP
"T. Valko" wrote in message
...
..........A..........B
1........5........not his stuff
2........2........some more junk
3........1........yes, this is it
4........6........blah blah blah
5........9........I need a break
Lookup "this is it"
D1 = this is it
=INDEX(A1:A5,MATCH("*"&D1&"*",B1:B,0))
Result = 1
--
Biff
Microsoft Excel MVP
"johnrb7865" wrote in message
...
Hi, I need to search a range of cells for a piece of text, not an
exact
match
of the whole string, but just some words. Then, when it finds that I
need
to
pull the information same row, 1 column to the left. I have
descriptions
in
the 2nd column and codes in the 1st, and when it finds a piece of the
description I need the code.
Any help would be great.
Thanks,
John
|