Pick up some text in a cell

E

Elton Law

Dear Expert,

Want to extract 3 letters after /, in this case, the answer should be JPY.

EUR/JPY SHORT EUR 20 MIO
AUD/JPY SHORT AUD 1 MIO
USD/JPY SHORT USD 1 MIO
Can ?
Thanks
Elton
 
E

Elton Law

Hi David,
If this time, I want to capture the 3 letters in front of mio please ?'
EUR/JPY SHORT EUR 20 MIO
AUD/JPY SHORT AUD 1 MIO
USD/JPY SHORT USD 1 MIO
In this case, it should be 20, 1, 1 in each each.
Thanks
Elton
 
A

Ashish Mathur

Hi,

Try this

=1*MID(C11,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},C11&"0123456789")),SEARCH("
",C11,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},C11&"0123456789")))-MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},C11&"0123456789")))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
T

Teethless mama

Your formula returns incorrect value with this example

EUR/JPY SHORT EUR 20000 MIO
 
G

Glenn

=MID(A1,FIND("MIO",A1)-3,3)

Elton said:
Hi David,
If this time, I want to capture the 3 letters in front of mio please ?'
EUR/JPY SHORT EUR 20 MIO
AUD/JPY SHORT AUD 1 MIO
USD/JPY SHORT USD 1 MIO
In this case, it should be 20, 1, 1 in each each.
Thanks
Elton
 
G

Glenn

It doesn't "capture the 3 letters in front of mio"?

(Where I took "letters" to mean "characters")
 

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

Top