Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default How do I extract data into two cells?

Using Vista, Excel 2007

I have the following:
In A1 - 'Bill Smith (2468)'
In A2 - 'James Sinclair (659873)'
and so on to A350, with names of various lengths and numbers containing a
different number of digits in parenthesis.

I require, in text format:
In B1 - 'Bill Smith' In C1 '(2468)'
In B2 - 'James Sinclair' In C2 '(659873)'
and so on to row 350.

Any advice will be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default How do I extract data into two cells?

one method:

=LEFT(A1,FIND("(",A1)-1) for names
=MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1) for numbers

should you need the numbers to be "numeric" not text then
=MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1)*1

HIH


On 17 Sty, 12:05, "Stan in South Africa" <me@there wrote:
Using Vista, Excel 2007

I have the following:
In A1 - 'Bill Smith (2468)'
In A2 - 'James Sinclair (659873)'
and so on to A350, with names of various lengths and numbers containing a
different number of digits in parenthesis.

I require, in text format:
In B1 - 'Bill Smith' *In C1 '(2468)'
In B2 - 'James Sinclair' In C2 '(659873)'
and so on to row 350.

Any advice will be appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default How do I extract data into two cells?

Hi

Here's an other method.

Use find/replace to replace "(" with "~("

Then select all cells and goto "Text to columns" on the Data tab Delemited
Other : ~ Next Destination : $B$1 OK


Regards,
Per


"Jarek Kujawa" skrev i meddelelsen
...
one method:

=LEFT(A1,FIND("(",A1)-1) for names
=MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1) for numbers

should you need the numbers to be "numeric" not text then
=MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1)*1

HIH


On 17 Sty, 12:05, "Stan in South Africa" <me@there wrote:
Using Vista, Excel 2007

I have the following:
In A1 - 'Bill Smith (2468)'
In A2 - 'James Sinclair (659873)'
and so on to A350, with names of various lengths and numbers containing a
different number of digits in parenthesis.

I require, in text format:
In B1 - 'Bill Smith' In C1 '(2468)'
In B2 - 'James Sinclair' In C2 '(659873)'
and so on to row 350.

Any advice will be appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default How do I extract data into two cells?

sorry - forgot the brackets

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

is correct


On 17 Sty, 12:27, Jarek Kujawa wrote:
one method:

=LEFT(A1,FIND("(",A1)-1) for names
=MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1) for numbers

should you need the numbers to be "numeric" not text then
=MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1)*1

HIH

On 17 Sty, 12:05, "Stan in South Africa" <me@there wrote:



Using Vista, Excel 2007


I have the following:
In A1 - 'Bill Smith (2468)'
In A2 - 'James Sinclair (659873)'
and so on to A350, with names of various lengths and numbers containing a
different number of digits in parenthesis.


I require, in text format:
In B1 - 'Bill Smith' *In C1 '(2468)'
In B2 - 'James Sinclair' In C2 '(659873)'
and so on to row 350.


Any advice will be appreciated.- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I extract data into two cells?

One more.

Copy the all the data into two columns (identical columns when you're done).

Select the first column
ctrl-h (replace)
what: _(* (space character, open paren, asterisk)
with: (leave blank)
replace all
This will remove the (####) from the first column.

Select the second column
ctrl-h (replace)
what: *( (open paren, asterisk)
with: (leave blank)
replace all
This will remove the name.

Select the second column
ctrl-h (replace)
what: ) (close paren)
with: (leave blank)
replace all
This will remove the closing paren



Stan in South Africa wrote:

Using Vista, Excel 2007

I have the following:
In A1 - 'Bill Smith (2468)'
In A2 - 'James Sinclair (659873)'
and so on to A350, with names of various lengths and numbers containing a
different number of digits in parenthesis.

I require, in text format:
In B1 - 'Bill Smith' In C1 '(2468)'
In B2 - 'James Sinclair' In C2 '(659873)'
and so on to row 350.

Any advice will be appreciated.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default How do I extract data into two cells?

excellent!
;-)

On 17 Sty, 14:24, Dave Peterson wrote:
One more.

Copy the all the data into two columns (identical columns when you're done).

Select the first column
ctrl-h (replace)
what: *_(* * * * * * * * (space character, open paren, asterisk)
with: *(leave blank)
replace all
This will remove the (####) from the first column.

Select the second column
ctrl-h (replace)
what: **( * * * * * * *(open paren, asterisk)
with: *(leave blank)
replace all
This will remove the name.

Select the second column
ctrl-h (replace)
what: *) * * * * * * *(close paren)
with: *(leave blank)
replace all
This will remove the closing paren

Stan in South Africa wrote:



Using Vista, Excel 2007


I have the following:
In A1 - 'Bill Smith (2468)'
In A2 - 'James Sinclair (659873)'
and so on to A350, with names of various lengths and numbers containing a
different number of digits in parenthesis.


I require, in text format:
In B1 - 'Bill Smith' *In C1 '(2468)'
In B2 - 'James Sinclair' In C2 '(659873)'
and so on to row 350.


Any advice will be appreciated.


--

Dave Peterson


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
How to extract just text from cells Access Joe Excel Worksheet Functions 4 April 29th 08 09:06 PM
Tying to extract all data from a pivot pulling from external data Ted Urban Excel Discussion (Misc queries) 3 September 14th 07 10:50 AM
Extract numbers from cells Orf Bartrop New Users to Excel 5 December 17th 06 08:04 AM
extract data from a range of cells in rows or columns when a date. Dartyon Excel Worksheet Functions 0 February 24th 05 10:37 PM
extract data from cells Nicole L. Excel Worksheet Functions 2 February 2nd 05 08:54 PM


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