#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Mid/Len functions

Hi,

Can anyone help me to find out this formula?

Column A1
The company ABCD1237 ID:xxxxxxxxx3 ABCD company
Company abcd1237 ID:xxxxxxxx4 Thankyoucompany

The result I'd like to get is only the ID:xxxxxxxx3. I have a formula but
it only take the first part ID:xxxxxxxxx3 ABCD company. I'd like to get rid
of ABCD company portion as well. Here is my formula.
=MID(O27,FIND(" ",O27)+9,LEN(O27))

Any suggestions? Thank you.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Mid/Len functions

Hi,

=TRIM(LEFT(MID(O27,FIND(" ",O27)+9,LEN(O27)),FIND(" ",MID(O27,FIND("
",O27)+9,LEN(O27)))-1))

if this helps please click yes, thanks

"momotaro" wrote:

Hi,

Can anyone help me to find out this formula?

Column A1
The company ABCD1237 ID:xxxxxxxxx3 ABCD company
Company abcd1237 ID:xxxxxxxx4 Thankyoucompany

The result I'd like to get is only the ID:xxxxxxxx3. I have a formula but
it only take the first part ID:xxxxxxxxx3 ABCD company. I'd like to get rid
of ABCD company portion as well. Here is my formula.
=MID(O27,FIND(" ",O27)+9,LEN(O27))

Any suggestions? Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Mid/Len functions

Hi,,

the bit to extract is always in the same place in the string try this

=MID(MID(MID(SUBSTITUTE(A1," ","^",3),1,256),FIND("^",SUBSTITUTE(A1,"
","^",3)),256),2,FIND(" ",MID(MID(SUBSTITUTE(A1,"
","^",3),1,256),FIND("^",SUBSTITUTE(A1," ","^",3)),256))-2)

Mike

"momotaro" wrote:

Hi,

Can anyone help me to find out this formula?

Column A1
The company ABCD1237 ID:xxxxxxxxx3 ABCD company
Company abcd1237 ID:xxxxxxxx4 Thankyoucompany

The result I'd like to get is only the ID:xxxxxxxx3. I have a formula but
it only take the first part ID:xxxxxxxxx3 ABCD company. I'd like to get rid
of ABCD company portion as well. Here is my formula.
=MID(O27,FIND(" ",O27)+9,LEN(O27))

Any suggestions? Thank you.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Mid/Len functions

=LEFT(RIGHT(A1,LEN(A1)-FIND("ID",A1,1)+1),FIND("
",RIGHT(A1,LEN(A1)-FIND("ID",A1,1)),1))

--
Gary''s Student - gsnu200902
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Mid/Len functions

Thanks. I used your formula but got "#VALUE!". Suggessions please. Thanks
again.



"Eduardo" wrote:

Hi,

=TRIM(LEFT(MID(O27,FIND(" ",O27)+9,LEN(O27)),FIND(" ",MID(O27,FIND("
",O27)+9,LEN(O27)))-1))

if this helps please click yes, thanks

"momotaro" wrote:

Hi,

Can anyone help me to find out this formula?

Column A1
The company ABCD1237 ID:xxxxxxxxx3 ABCD company
Company abcd1237 ID:xxxxxxxx4 Thankyoucompany

The result I'd like to get is only the ID:xxxxxxxx3. I have a formula but
it only take the first part ID:xxxxxxxxx3 ABCD company. I'd like to get rid
of ABCD company portion as well. Here is my formula.
=MID(O27,FIND(" ",O27)+9,LEN(O27))

Any suggestions? Thank you.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Mid/Len functions

Thanks. I tried this one but did not work. I got "#value". Any
suggestions? Thank you again.

"Gary''s Student" wrote:

=LEFT(RIGHT(A1,LEN(A1)-FIND("ID",A1,1)+1),FIND("
",RIGHT(A1,LEN(A1)-FIND("ID",A1,1)),1))

--
Gary''s Student - gsnu200902

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Mid/Len functions

Hi,
It is working for me I copy your data and it works, check if you don't have
and extra space in your text

"Eduardo" wrote:

Hi,

=TRIM(LEFT(MID(O27,FIND(" ",O27)+9,LEN(O27)),FIND(" ",MID(O27,FIND("
",O27)+9,LEN(O27)))-1))

if this helps please click yes, thanks

"momotaro" wrote:

Hi,

Can anyone help me to find out this formula?

Column A1
The company ABCD1237 ID:xxxxxxxxx3 ABCD company
Company abcd1237 ID:xxxxxxxx4 Thankyoucompany

The result I'd like to get is only the ID:xxxxxxxx3. I have a formula but
it only take the first part ID:xxxxxxxxx3 ABCD company. I'd like to get rid
of ABCD company portion as well. Here is my formula.
=MID(O27,FIND(" ",O27)+9,LEN(O27))

Any suggestions? Thank you.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Mid/Len functions

Thank you all. I found my error. It works now.

"momotaro" wrote:

Hi,

Can anyone help me to find out this formula?

Column A1
The company ABCD1237 ID:xxxxxxxxx3 ABCD company
Company abcd1237 ID:xxxxxxxx4 Thankyoucompany

The result I'd like to get is only the ID:xxxxxxxx3. I have a formula but
it only take the first part ID:xxxxxxxxx3 ABCD company. I'd like to get rid
of ABCD company portion as well. Here is my formula.
=MID(O27,FIND(" ",O27)+9,LEN(O27))

Any suggestions? Thank you.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple functions, conditional functions HeatherBelle Excel Worksheet Functions 7 October 17th 08 03:57 PM
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
formula/functions for average and if functions Petu71 Excel Worksheet Functions 2 August 5th 07 08:25 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM


All times are GMT +1. The time now is 02:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"