Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Extract text inside bracket

Hello,
First
I would like extract only text inside bracket and copy to the adjacent
or next column in EXCEL.Eg as shown below:
I am (thirsty) for water.
Now only thirsty needs to be copied to next column, Can it be done by
formulae.
Second doubt,

For below Eg,
ITEM TAG NO. DWG. NO.
1 11HS051A, 11XA054A 00A1CD001W51
2 11HS051B, 11XA054B 00A1CD002W52
3 11HS601A, 11XA603A 00A1CD003W53

I would like to look have it as below,what is the easiest way to do
this in excel
ITEM TAG NO. DWG. NO.
1 11HS051A 00A1CD001W51
2 11XA054A 00A1CD001W51
3 11HS051B 00A1CD001W52
4 11XA054B 00A1CD002W52
5 11HS601A 00A1CD001W53
6 11XA603A 00A1CD003W53

Thanks in advance,
Akumar

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Extract text inside bracket

this may work for you
a1 contains (thirsty)
put this in a2
=REPLACE(REPLACE(A1,1,1,""),LEN(A1)-1,1,"")

--


Gary


"Kumaras" wrote in message
oups.com...
Hello,
First
I would like extract only text inside bracket and copy to the adjacent
or next column in EXCEL.Eg as shown below:
I am (thirsty) for water.
Now only thirsty needs to be copied to next column, Can it be done by
formulae.
Second doubt,

For below Eg,
ITEM TAG NO. DWG. NO.
1 11HS051A, 11XA054A 00A1CD001W51
2 11HS051B, 11XA054B 00A1CD002W52
3 11HS601A, 11XA603A 00A1CD003W53

I would like to look have it as below,what is the easiest way to do
this in excel
ITEM TAG NO. DWG. NO.
1 11HS051A 00A1CD001W51
2 11XA054A 00A1CD001W51
3 11HS051B 00A1CD001W52
4 11XA054B 00A1CD002W52
5 11HS601A 00A1CD001W53
6 11XA603A 00A1CD003W53

Thanks in advance,
Akumar



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Extract text inside bracket


forgot it was in the middle of the sentence, my formula wouldn't work
--


Gary


"Kumaras" wrote in message
oups.com...
Hello,
First
I would like extract only text inside bracket and copy to the adjacent
or next column in EXCEL.Eg as shown below:
I am (thirsty) for water.
Now only thirsty needs to be copied to next column, Can it be done by
formulae.
Second doubt,

For below Eg,
ITEM TAG NO. DWG. NO.
1 11HS051A, 11XA054A 00A1CD001W51
2 11HS051B, 11XA054B 00A1CD002W52
3 11HS601A, 11XA603A 00A1CD003W53

I would like to look have it as below,what is the easiest way to do
this in excel
ITEM TAG NO. DWG. NO.
1 11HS051A 00A1CD001W51
2 11XA054A 00A1CD001W51
3 11HS051B 00A1CD001W52
4 11XA054B 00A1CD002W52
5 11HS601A 00A1CD001W53
6 11XA603A 00A1CD003W53

Thanks in advance,
Akumar



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Extract text inside bracket

Kumaras,

This might work for the bracket problem-

In cell A1 let it equal, I am (thirsty) for water.

In cell A2 enter the formula, MID(A1, FIND("(",A1,1)+1,
FIND(")",A1,1)-FIND("(",A1,1)-1)

Explanation of terms-
FIND("(",A1,1)+1, : Finds the position of the first parenthesis, "(",
then add one for the first letter after "(". This finds the start_num
of the text in A1.
FIND(")",A1,1) : Finds the position of the second parenthesis, ")"
FIND(")",A1,1)-FIND("(",A1,1)-1 :Subtract the second position value
minus the first value, then subtract one. This determines the num_char
starting with the start_num value.

Best regards,

RichardG



==========
Kumaras wrote:
Hello,
First
I would like extract only text inside bracket and copy to the adjacent
or next column in EXCEL.Eg as shown below:
I am (thirsty) for water.
Now only thirsty needs to be copied to next column, Can it be done by
formulae.
Second doubt,

For below Eg,
ITEM TAG NO. DWG. NO.
1 11HS051A, 11XA054A 00A1CD001W51
2 11HS051B, 11XA054B 00A1CD002W52
3 11HS601A, 11XA603A 00A1CD003W53

I would like to look have it as below,what is the easiest way to do
this in excel
ITEM TAG NO. DWG. NO.
1 11HS051A 00A1CD001W51
2 11XA054A 00A1CD001W51
3 11HS051B 00A1CD001W52
4 11XA054B 00A1CD002W52
5 11HS601A 00A1CD001W53
6 11XA603A 00A1CD003W53

Thanks in advance,
Akumar


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Extract text inside bracket

I'm assuming you meant parentheses not brackets, right?

These are parentheses - ( )
These are brackets - [ ]
These are braces - { }



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Extract text inside bracket

Paul,

Thanks for the clarification on parentheses, brackets and braces. I
should be more careful.
I would think that the formula would work regardless which one is used,
as long as the formula is properly coded.

Best regards,

RichardG


Paul D. Simon wrote:
I'm assuming you meant parentheses not brackets, right?

These are parentheses - ( )
These are brackets - [ ]
These are braces - { }


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
Extract data from bracket Kent Excel Worksheet Functions 7 November 14th 09 11:28 AM
How do I bracket text in cells by formatting a whole column? tywlam Excel Worksheet Functions 3 April 15th 09 03:38 PM
How can I extract characters from inside a cell? Eric Excel Worksheet Functions 4 September 13th 07 05:21 PM
How do I extract 3 numbers inside a longer number to another column ? Dbase Beginner Excel Discussion (Misc queries) 2 January 20th 06 05:39 PM
Extract Informations inside a Borderframe Oliver Kurowski Excel Programming 1 January 15th 04 09:08 PM


All times are GMT +1. The time now is 04:05 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"