Windows OS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows OS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 26th, 2007, 11:31 AM
bdhtexas bdhtexas is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Galveston, Tx
Posts: 64 bdhtexas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 39 m 16 sec
Reputation Power: 5
Excel text to columns question

I am making a mailing list in Excel to send letters advertising my new business. I copied and pasted data from Yahoo Business Listings onto an Excel Spreadsheet.

The problem is this, I now have several hundreds of lines of data and I need to move certain data over to the correct columns.

A simple text to columns doesn't work here because data is not formatted to do it quickly.

Example:
A1 - Business Name B1 - Phone C1 - Address D1 - City
A2 - ABC Company
A3 - (702) 555-3100 1200 S Main St
A4 - Houston
A2 and every 3rd row down contains the Business Name
A3 and every 3rd row down contains both the phone number and address
A4 and every 3rd row down contains the city
I don't need to move A2
I need to move A3 to B3 and C3
I need to move A4 to D4

Then I can run a macro to eliminate the empty cells, I already have the code.

My question - is there a simple way to move this data or do I need to go in and format it so I can use text to columns?

Any help is appreciated.

Thanks!

Reply With Quote
  #2  
Old July 26th, 2007, 05:17 PM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Infernal Technomancer
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Centrally located far from everywhere
Posts: 303 Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Day 18 h 9 m 59 sec
Reputation Power: 131
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
Text to columns is somewhat flexible... what are you using to delineate (comma, space, tab)?

A little trick I used to use is to place the text into Notepad, change it to a fixed-width font, copy and past into Wordpad and use Find & replace (if needed) to get a unique separator to use in Excel.

Of course, this doesn't always work, but it came in handy for me.
__________________
Almost Ancient Folding Wizard


For difficult hardware problems, go to the Hard Side™-- DevHardware Forums

Reply With Quote
  #3  
Old July 26th, 2007, 05:46 PM
bdhtexas bdhtexas is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Galveston, Tx
Posts: 64 bdhtexas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 39 m 16 sec
Reputation Power: 5
Quote:
Originally Posted by Dngrsone
Text to columns is somewhat flexible... what are you using to delineate (comma, space, tab)?

A little trick I used to use is to place the text into Notepad, change it to a fixed-width font, copy and past into Wordpad and use Find & replace (if needed) to get a unique separator to use in Excel.

Of course, this doesn't always work, but it came in handy for me.


Thanks for the comment... but I've tried several different ways to use text to columns and it only helps a little, only on the address and phone number lines. It separates the two but it leaves open spaces before the address and I have to go back and remove them. I've been manually fixing the data into the different columns. It's a very long process and it will take days to get it finished.

Reply With Quote
  #4  
Old July 26th, 2007, 05:59 PM
Lauramc's Avatar
Lauramc Lauramc is offline
SQL Slarentice
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2004
Location: In My Happy Place
Posts: 1,783 Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level)Lauramc User rank is General 2nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 15 h 48 m 56 sec
Reputation Power: 1095
Quote:
Originally Posted by bdhtexas
Thanks for the comment... but I've tried several different ways to use text to columns and it only helps a little, only on the address and phone number lines. It separates the two but it leaves open spaces before the address and I have to go back and remove them. I've been manually fixing the data into the different columns. It's a very long process and it will take days to get it finished.
One thing that might help is getting all the address data on one line. Using your example, if you selected all the data relating to a single address record and select Copy--> Paste Special --> Transpose (check the transpose checkbox); it moves all the data to one line. Of course, you would likely have to do this manually for each record (unless you could devise a macro that can find the blank cell between records and select the rows above until it finds another blank).

Once the record is transposed, it is much easier (though still imperfect) for text to columns.
__________________
Slarentice (origin:Shadow Wizard of ASP Free) [noun] A slave and apprentice of the Wizard's Circle (specifically of mehere) at ASP Free.
----
If shemzilla takes over, it's best to be on his good side


Reply With Quote
  #5  
Old July 26th, 2007, 11:29 PM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Infernal Technomancer
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: Centrally located far from everywhere
Posts: 303 Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)Dngrsone User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1Folding Points: 339338 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Day 18 h 9 m 59 sec
Reputation Power: 131
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
Open spaces as in extra columns?

Usually, the hard part is getting a separator for every section in the source before importing the text to Excel. Sometimes it's easier to edit the content of the source before exporting it as text.

Unfortunately, sometimes you end up spending time on every entry.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows OS > Excel text to columns question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT