Forum Statistics
- Forum Members:
- Total Threads:
- Total Posts: 12
There are 1 users currently browsing forums.
|
 |

07-04-2009, 06:05 AM
|
|
Registered User
|
|
Join Date: 10 Aug 2007
Posts: 71
|
|
|
Extracting mid strings from a cell
Please Register to Remove these Ads
Hello,
i have in a cell a Text like this..
Chicago (TZGUG)
i tried a formula.. like this..
=LEFT(F3;LEN(F3)-1
to remove only ) ..
but how can i remove the ( too ..
and also Chicago
so the result in a cell would be TZGUG
please help, thanks
the rest cells are all like this..
the left strings are always standard ---> (xxxxx)
Last edited by Sultix; 07-04-2009 at 07:43 AM.
|

07-04-2009, 06:34 AM
|
|
Forum Contributor
|
|
Join Date: 11 Nov 2008
Location: The Earth
Posts: 191
|
|
|
Re: Extracting mid strings from a cell
This formula for the solution
=SUBSTITUTE(SUBSTITUTE(F3,")",""),"(","")
Last edited by tigertiger; 07-04-2009 at 06:36 AM.
|

07-04-2009, 06:46 AM
|
|
Forum Contributor
|
|
Join Date: 11 Nov 2008
Location: The Earth
Posts: 191
|
|
|
Re: Extracting mid strings from a cell
sorry, a mistake
Do following the formula
assuming your data at cell F3
=MID(F3,FIND("(",F3)+1,FIND(")",F3)-1-FIND("(",F3))
|

07-04-2009, 06:54 AM
|
|
Registered User
|
|
Join Date: 10 Aug 2007
Posts: 71
|
|
|
Re: Extracting mid strings from a cell
Quote:
Originally Posted by tigertiger
sorry, a mistake
Do following the formula
assuming your data at cell F3
=MID(F3,FIND("(",F3)+1,FIND(")",F3)-1-FIND("(",F3))
|
Hello tiger,
doesnt work
could the problem be on bold reference?
FIND("(",F3)+1
])-1-FIND("(",F3))
same thing twice?
Last edited by Sultix; 07-04-2009 at 06:59 AM.
|

07-04-2009, 07:02 AM
|
|
Forum Contributor
|
|
Join Date: 11 Nov 2008
Location: The Earth
Posts: 191
|
|
|
Re: Extracting mid strings from a cell
no ,
that work for your sample data
=MID(F3,FIND("(",F3)+1,FIND(")",F3)-1-FIND("(",F3))
differ between the red character
if cell F3 contains
Chicago (TZGUG)
==> the cell result is
TZGUG
what about the error you see?
|

07-04-2009, 07:03 AM
|
 |
Forum Guru
|
|
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 5,993
|
|
|
Re: Extracting mid strings from a cell
=substitute(mid(a1,find("(",a1)+1,255),")"
|

07-04-2009, 07:11 AM
|
|
Registered User
|
|
Join Date: 10 Aug 2007
Posts: 71
|
|
|
Re: Extracting mid strings from a cell
neither formulas work..
i have the file attached.. please look..
i pasted mine, yours and martins.. none work..
|

07-04-2009, 07:22 AM
|
|
Forum Contributor
|
|
Join Date: 11 Nov 2008
Location: The Earth
Posts: 191
|
|
|
Re: Extracting mid strings from a cell
hmm, that is a formula, you have to type begin =
see cell D2:D6 in attached file, is it result that you hope?
|

07-04-2009, 07:30 AM
|
|
Registered User
|
|
Join Date: 10 Aug 2007
Posts: 71
|
|
|
Re: Extracting mid strings from a cell
hello tiger,
i did post without = on purpose
i know why it didnt work previously on F3 Cell .. because i had there " " instead ( ) .. my mistake sorry..
thank you.. that is the result i wanted to see..
is this the shortest it can be done? ... would martins formula work too?
alternative ways is always good to know ;-)
|

07-04-2009, 07:41 AM
|
|
Forum Contributor
|
|
Join Date: 11 Nov 2008
Location: The Earth
Posts: 191
|
|
|
Re: Extracting mid strings from a cell
Quote:
Originally Posted by Sultix
hello tiger,
is this the shortest it can be done? ... would martins formula work too?
alternative ways is always good to know ;-)
|
for data at cell B2
the martins's formula, I think, should be
=SUBSTITUTE(MID(B2,FIND("(",B2)+1,255),")","")
an alternative is
=SUBSTITUTE(RIGHT(B2,LEN(B2)-FIND("(",B2)),")","")
|

07-04-2009, 07:43 AM
|
|
Registered User
|
|
Join Date: 10 Aug 2007
Posts: 71
|
|
|
Re: Extracting mid strings from a cell
yes both em works.. thank you very much
|

07-04-2009, 10:53 AM
|
 |
Forum Guru
|
|
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 5,993
|
|
|
Re: Extracting mid strings from a cell
oops missed a ) on copying doh
|
 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|