Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Seperating and extracting text from parentheses

I receive hundreds of rows of text data for part numbers and part
descriptions. The data is in a row format, beginning in A1, A2, A3, etc.
The data in each row is one text string; e.g.
Cell A1 - 123456-789 (PNL, 15.4 WXGA BV, RoHS, LPL)
Cell A2 - 57CX4962012 (LCD INVERTER)

I would like to separate the data in each of the text strings into the
format below. I've had a real challenge with extracting the part description
from the parentheses.

Cell A1 Cell B1
Cell C1
123456-789 (PNL, RoHS, LPL) 123456-789 PNL, RoHS, LPL

Cell A2 Cell B2
Cell C2
57CX4962012 (LCD INVERTER) 57CX4962012 LCD INVERTER

Thank you for your time and assistance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Seperating and extracting text from parentheses

In B1:

=LEFT(A1,FIND("(",A1)-1)

In C1:

=MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Morton Detwyler" wrote in
message ...
I receive hundreds of rows of text data for part numbers and part
descriptions. The data is in a row format, beginning in A1, A2, A3, etc.
The data in each row is one text string; e.g.
Cell A1 - 123456-789 (PNL, 15.4 WXGA BV, RoHS, LPL)
Cell A2 - 57CX4962012 (LCD INVERTER)

I would like to separate the data in each of the text strings into the
format below. I've had a real challenge with extracting the part
description
from the parentheses.

Cell A1 Cell B1
Cell C1
123456-789 (PNL, RoHS, LPL) 123456-789 PNL, RoHS, LPL

Cell A2 Cell B2
Cell C2
57CX4962012 (LCD INVERTER) 57CX4962012 LCD INVERTER

Thank you for your time and assistance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Seperating and extracting text from parentheses

Hi Morton

B1 =LEFT(A1,FIND("(",A1)-1)
C1 =SUBSTITUTE(MID(A1,FIND("(",A1)+1),")","")
I can't tell form your posting whether there is a space between the last
digit and (.
If there is, then use -2 in the first formula
--
Regards
Roger Govier

"Morton Detwyler" wrote in
message ...
I receive hundreds of rows of text data for part numbers and part
descriptions. The data is in a row format, beginning in A1, A2, A3, etc.
The data in each row is one text string; e.g.
Cell A1 - 123456-789 (PNL, 15.4 WXGA BV, RoHS, LPL)
Cell A2 - 57CX4962012 (LCD INVERTER)

I would like to separate the data in each of the text strings into the
format below. I've had a real challenge with extracting the part
description
from the parentheses.

Cell A1 Cell B1
Cell C1
123456-789 (PNL, RoHS, LPL) 123456-789 PNL, RoHS, LPL

Cell A2 Cell B2
Cell C2
57CX4962012 (LCD INVERTER) 57CX4962012 LCD INVERTER

Thank you for your time and assistance.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Seperating and extracting text from parentheses

On Tue, 10 Feb 2009 09:09:01 -0800, Morton Detwyler
wrote:

I receive hundreds of rows of text data for part numbers and part
descriptions. The data is in a row format, beginning in A1, A2, A3, etc.
The data in each row is one text string; e.g.
Cell A1 - 123456-789 (PNL, 15.4 WXGA BV, RoHS, LPL)
Cell A2 - 57CX4962012 (LCD INVERTER)

I would like to separate the data in each of the text strings into the
format below. I've had a real challenge with extracting the part description
from the parentheses.

Cell A1 Cell B1
Cell C1
123456-789 (PNL, RoHS, LPL) 123456-789 PNL, RoHS, LPL

Cell A2 Cell B2
Cell C2
57CX4962012 (LCD INVERTER) 57CX4962012 LCD INVERTER

Thank you for your time and assistance.


B1: =TRIM(LEFT(A1,FIND("(",A1)-1))
C1: =MID(A1,FIND("(",A1)+1,FIND(")",A1)-1-FIND("(",A1))

and fill down.
--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Seperating and extracting text from parentheses

Apologies.
For the second time today I managed to miss out part of the Mid() function.
That should have read
=SUBSTITUTE(MID(A1,FIND("(",A1)+1,LEN(A1)),")","")

--
Regards
Roger Govier

"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi Morton

B1 =LEFT(A1,FIND("(",A1)-1)
C1 =SUBSTITUTE(MID(A1,FIND("(",A1)+1),")","")
I can't tell form your posting whether there is a space between the last
digit and (.
If there is, then use -2 in the first formula
--
Regards
Roger Govier

"Morton Detwyler" wrote in
message ...
I receive hundreds of rows of text data for part numbers and part
descriptions. The data is in a row format, beginning in A1, A2, A3, etc.
The data in each row is one text string; e.g.
Cell A1 - 123456-789 (PNL, 15.4 WXGA BV, RoHS, LPL)
Cell A2 - 57CX4962012 (LCD INVERTER)

I would like to separate the data in each of the text strings into the
format below. I've had a real challenge with extracting the part
description
from the parentheses.

Cell A1 Cell B1
Cell C1
123456-789 (PNL, RoHS, LPL) 123456-789 PNL, RoHS, LPL

Cell A2 Cell B2
Cell C2
57CX4962012 (LCD INVERTER) 57CX4962012 LCD INVERTER

Thank you for your time and assistance.


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
Seperating numbers from text mns Excel Discussion (Misc queries) 2 July 24th 08 10:52 AM
Seperating text within a cell Alan Excel Discussion (Misc queries) 1 January 10th 08 09:48 PM
Seperating Text from Columns Johnny B[_2_] Excel Discussion (Misc queries) 0 March 28th 07 01:16 AM
seperating values from text enyaw Excel Discussion (Misc queries) 18 January 15th 07 03:49 PM
Seperating text Richard Excel Discussion (Misc queries) 8 June 29th 06 10:21 PM


All times are GMT +1. The time now is 10:00 PM.

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"