Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel find or lookup in a string

Status
Not open for further replies.

kcoleman26

Technical User
Oct 26, 2007
66
US

I have a cell with a sting of data in it.
C4: SR-305, SR-192, SR-193, SR-194, SR-225, SR-18

I have a table with a list of values that I am looking for within that string
A
1. SR-10
2. SR-11
3. SR-12
4. SR-18
5. SR-19

What I want is to look in the cell string of data and if it finds a match to return that match to my cell

In this case look and Cell C4 and if you see any value in that Cell that matches any of the values in my Table then return the value you found.Wwhich it should have found SR-18

 
Hi,

Use the FIND() function.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Close what is happening now is it is returning SR-19 from the SR-192 entry so it doesn't recognize the comma. Is there a way to make it look between the commas?
 
How about search for 'SR-19,'?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top