Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how to move all info in column a to seperate columns

I am copying a phone/address directory and want to put it in columns.

This is how it looks when I copy it to excel:

Doe, Jane Ms.
Title/Position: Vice President
Department: Department of Marketing
Office Location: New York
Email:

Doe, John
Title/Position: President
Department: Department of Business
Office Location: New York
Email:


How do i get name to column a, title into column b and so on?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default how to move all info in column a to seperate columns

One easy tinker which might work out ok for you

Assuming data as posted is representative and runs in A2 down,
in groups of 6 lines per group (inclusive of the separating blank line)
with the colon ":" found in lines 2-5 of each group

Put in B2: =OFFSET($A$1,ROWS($1:1)*6-6+COLUMNS($A:A),)
Copy B2 across by 5 cols to F2
This will transpose the source data row-wise

Put in G2: =TRIM(MID(C2,SEARCH(":",C2)+1,99))
Copy G2 across by 4 cols to J2
This removes the "header" parts before the colon (inclusive the colon)

Select B2:J2, copy down until zeros appear in cols B to G, signalling
exhaustion of data. Then freeze all formulas by selecting entire cols B to J
and do an "in-place" copy n paste special as values. Clean up by deleting
cols C to G (and the source col A as well if desired). Job done.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"ksauey" wrote:
I am copying a phone/address directory and want to put it in columns.

This is how it looks when I copy it to excel:

Doe, Jane Ms.
Title/Position: Vice President
Department: Department of Marketing
Office Location: New York
Email:

Doe, John
Title/Position: President
Department: Department of Business
Office Location: New York
Email:


How do i get name to column a, title into column b and so on?

Thanks

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
Lookup info in one Column and then returning info in other columns Cyndi513 Excel Worksheet Functions 1 June 23rd 08 02:36 PM
Functions that will move info to a different location in column Bill R Excel Worksheet Functions 8 December 10th 07 11:36 PM
seperate first 2 lines of column in seperate columns in same row Glynnhamer Excel Discussion (Misc queries) 2 October 9th 06 04:23 AM
HOW DO I SEPERATE INFO FROM ONE INTO TWO COLUMNS? help needed Excel Worksheet Functions 2 August 12th 06 12:01 AM
Seperate Data in one column into two columns? Dan B Excel Worksheet Functions 4 June 30th 06 09:20 PM


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