Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 145
Default Extracting text to from one cell to create columns and rows

First use text to column, separate by space;
then use "&" to join firstname and lastname

Cheers

wrote in message
oups.com...
Is anybody out there who can help me.
I have a worksheet with one column and it contains text of the format
[[firstname] [lastname] [company name]] all in one cell thereby
creating a record (see A below).

The next row contains entry for a different record with the same format
and have rows and rows of records in the same format described above.

What I will like to do is to extract in each cell the name text and put
it in a different column (e.g. column A) and the company name text in
another column (e.g. column B) on row 1. Then go to the next cell and
repeat the same for the next record - row 2 and so on....

A. Current Excel worksheet structure (sheet 1)
=========================
A B C
1 firstname lastname
companyname

2 firstname lastname
companyname

3 firstname lastname
companyname

4

B. Proposed Excel worksheet structure (sheet 2 - what I will like to
achieve)
=========================
A B C
1 firstname lastname companyname
2 firstname lastname companyname
3 firstname lastname companyname

Is there a way to automate by writing a macro achieve and turn the
format in A above into B for all records when run?



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
Need to create rows from columns patc303 Excel Worksheet Functions 1 January 8th 10 01:59 PM
Each rows last cell text value could be in any columns. Robert Christie Excel Worksheet Functions 6 May 2nd 06 06:53 PM
extracting rows/columns Tiffani Excel Discussion (Misc queries) 3 March 6th 06 04:14 PM
Extracting info from different rows (& columns) Noel Boland Excel Programming 2 February 2nd 04 03:07 PM
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' Dan E[_2_] Excel Programming 4 July 30th 03 06:43 PM


All times are GMT +1. The time now is 09:38 AM.

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

About Us

"It's about Microsoft Excel"