Finding text

  • Thread starter Thread starter Naz
  • Start date Start date
N

Naz

Hi

I have a colum that has a ID numbers as follows

A B C D
E
1 E1234 E32185 E321
2 E8954 EC123 EE123
3 E3215 EE124 E4564

In another column in receive ID numbers say EE123 i need a formula that will
search column A and return the first ID where EE123 exists via =Mid(1,find("
") as ID are between 4-6 characters long.
So for EE123 the result would be E8954.

All help is greatly appreciated.
 
Assuming the data as posted is all in col A, in A1 down
In B1: =IF(ISNUMBER(FIND("EE123",A1)),LEFT(A1,SEARCH(" ",A1)-1),"")
Copy down
 
Hi Max
Thanks for your response.....
....this is close but not not what i'm looking for...let me try explaining
better

A B C D
E
1 E1234 E32185 E321
2 E8954 EC123 EE123
3 E3215 EE124 E4564
[Sheet 1]

These ID exist on sheet 1, but the ID i get are in a colum on sheet 2 so i
will get

A B C D
E
1 E32185
2 EE123
3 E4564
[Sheet 2]

The result that i need would be in col 2, sheet 2 as below

A B C D
E
1 E32185 E1234 [so finds E32185 in col1 sheet 1
2 EE123 E8954 and returns the first ID in
the cell]
3 E4564 E3215
[Sheet 2]

Hope that makes it clearer....thanks for all help.
 
Try this:

In Sheet2:

B1: =INDEX(LEFT(Sheet1!$A$1:$A$3,FIND("
",Sheet1!$A$1:$A$3)-1),MATCH("*"&A1&"*",Sheet1!$A$1:$A$3,0))

copy down



Naz said:
Hi Max
Thanks for your response.....
...this is close but not not what i'm looking for...let me try explaining
better

A B C D
E
1 E1234 E32185 E321
2 E8954 EC123 EE123
3 E3215 EE124 E4564
[Sheet 1]

These ID exist on sheet 1, but the ID i get are in a colum on sheet 2 so i
will get

A B C D
E
1 E32185
2 EE123
3 E4564
[Sheet 2]

The result that i need would be in col 2, sheet 2 as below

A B C D
E
1 E32185 E1234 [so finds E32185 in col1 sheet 1
2 EE123 E8954 and returns the first ID in
the cell]
3 E4564 E3215
[Sheet 2]

Hope that makes it clearer....thanks for all help.


--

_______________________
Naz,
London


Max said:
Assuming the data as posted is all in col A, in A1 down
In B1: =IF(ISNUMBER(FIND("EE123",A1)),LEFT(A1,SEARCH(" ",A1)-1),"")
Copy down
 
Thats the cookie!!!
Many thanks works perfectly.

--

_______________________
Naz,
London


Teethless mama said:
Try this:

In Sheet2:

B1: =INDEX(LEFT(Sheet1!$A$1:$A$3,FIND("
",Sheet1!$A$1:$A$3)-1),MATCH("*"&A1&"*",Sheet1!$A$1:$A$3,0))

copy down



Naz said:
Hi Max
Thanks for your response.....
...this is close but not not what i'm looking for...let me try explaining
better

A B C D
E
1 E1234 E32185 E321
2 E8954 EC123 EE123
3 E3215 EE124 E4564
[Sheet 1]

These ID exist on sheet 1, but the ID i get are in a colum on sheet 2 so i
will get

A B C D
E
1 E32185
2 EE123
3 E4564
[Sheet 2]

The result that i need would be in col 2, sheet 2 as below

A B C D
E
1 E32185 E1234 [so finds E32185 in col1 sheet 1
2 EE123 E8954 and returns the first ID in
the cell]
3 E4564 E3215
[Sheet 2]

Hope that makes it clearer....thanks for all help.


--

_______________________
Naz,
London


Max said:
Assuming the data as posted is all in col A, in A1 down
In B1: =IF(ISNUMBER(FIND("EE123",A1)),LEFT(A1,SEARCH(" ",A1)-1),"")
Copy down

---
:
I have a colum that has a ID numbers as follows

A B C D
E
1 E1234 E32185 E321
2 E8954 EC123 EE123
3 E3215 EE124 E4564

In another column in receive ID numbers say EE123 i need a formula that will
search column A and return the first ID where EE123 exists via =Mid(1,find("
") as ID are between 4-6 characters long.
So for EE123 the result would be E8954.

All help is greatly appreciated.
--

_______________________
Naz,
London
 
You're Welcome!

Naz said:
Thats the cookie!!!
Many thanks works perfectly.

--

_______________________
Naz,
London


Teethless mama said:
Try this:

In Sheet2:

B1: =INDEX(LEFT(Sheet1!$A$1:$A$3,FIND("
",Sheet1!$A$1:$A$3)-1),MATCH("*"&A1&"*",Sheet1!$A$1:$A$3,0))

copy down



Naz said:
Hi Max
Thanks for your response.....
...this is close but not not what i'm looking for...let me try explaining
better

A B C D
E
1 E1234 E32185 E321
2 E8954 EC123 EE123
3 E3215 EE124 E4564
[Sheet 1]

These ID exist on sheet 1, but the ID i get are in a colum on sheet 2 so i
will get

A B C D
E
1 E32185
2 EE123
3 E4564
[Sheet 2]

The result that i need would be in col 2, sheet 2 as below

A B C D
E
1 E32185 E1234 [so finds E32185 in col1 sheet 1
2 EE123 E8954 and returns the first ID in
the cell]
3 E4564 E3215
[Sheet 2]

Hope that makes it clearer....thanks for all help.


--

_______________________
Naz,
London


:

Assuming the data as posted is all in col A, in A1 down
In B1: =IF(ISNUMBER(FIND("EE123",A1)),LEFT(A1,SEARCH(" ",A1)-1),"")
Copy down

---
:
I have a colum that has a ID numbers as follows

A B C D
E
1 E1234 E32185 E321
2 E8954 EC123 EE123
3 E3215 EE124 E4564

In another column in receive ID numbers say EE123 i need a formula that will
search column A and return the first ID where EE123 exists via =Mid(1,find("
") as ID are between 4-6 characters long.
So for EE123 the result would be E8954.

All help is greatly appreciated.
--

_______________________
Naz,
London
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top