Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Condensing Imported fixed-width text with multiple data lines to one Excel row

I have a text file report with about 1,000 names listed as below. The
address is always one row down from name, the City-State-Zip is always
2 down from name, the DOB is 5 down. The email is always one column
over and 5 rows down.

Joe A Blow
555 LAREWOOD DRIVE
Vass, NC 28215


DOB = 1960-07-27 email:

My ideal end-product is to have each customer on one row with the
following column headings: Name, Address, City-State-Zip, DOB, and
email. Any ideas on how to get started?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Condensing Imported fixed-width text with multiple data lines to one Excel row


Try this (credit to Biff for his method of condensing):

Import the data to column A.

In B1 type: =INDEX($A:$A,(ROWS($1:1)-1)*6+COLUMNS($A:B)-1)
This formula effectively looks up each cell in column A in turn and
places them from left to right and down the rows.
Copy this to columns C:G, and hide cols E-F (will be zero) (don't
delete the cols)

In H1 type: =MID(G1,1,FIND("email:",G1)-1)
in I1 type: =MID(G1,FIND("email:",G1)+7,99)

This will separate the last cell into 2 values using the key phrase
"email:"

Copy the formula in cols B:I as far down as need be.

Et voila! (I hope)...

Regards
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=568466

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
Copying Data from Excel to MS Outlook in Plain Text Mode JohnGuts Excel Worksheet Functions 0 July 30th 06 09:57 PM
text box insert in Excel - text box lines print on second copy Diana (Berry & Co) Excel Discussion (Misc queries) 0 July 26th 06 04:39 AM
Formatting on imported data (Excel 2003) Marsha Excel Discussion (Misc queries) 0 July 25th 06 08:18 PM
Sort order : Excel vs imported data John Excel Discussion (Misc queries) 0 December 9th 05 01:40 PM
Outside Data Imported to Excel sabunabu Excel Discussion (Misc queries) 0 December 8th 05 02:15 PM


All times are GMT +1. The time now is 07:03 PM.

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"