Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default converting line-delimited text into cells

I have a text file with approximately 1000 lines of data, each line is 100
chars or less.

The first 15 lines are column headers (some columns are unused), then every
12 subsequent lines is one record.

What is the easiest way to get each record to appear in Excel (2007) on a
single line, one field per column?

Thank you



  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,522
Default converting line-delimited text into cells

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wowbagger" <privacy, please wrote in message
...
I have a text file with approximately 1000 lines of data, each line is 100
chars or less.

The first 15 lines are column headers (some columns are unused), then
every 12 subsequent lines is one record.

What is the easiest way to get each record to appear in Excel (2007) on a
single line, one field per column?

Thank you




  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,522
Default converting line-delimited text into cells

Sub GETDATA()

With Sheet2.Range("a1:a200")
Set c = .Find(What:="FILE ID #", LookIn:=xlValues, LookAt:=xlPart, _
SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=True)
r = 2
If Not c Is Nothing Then
firstAddress = c.Address
Do
'MsgBox c.Row
With Sheet3
.Cells(r, 4) = c.Offset(10)
.Cells(r, 5) = c
End With
Set c = .FindNext(c)
r = r + 1

Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wowbagger" <privacy, please wrote in message
...
I have a text file with approximately 1000 lines of data, each line is 100
chars or less.

The first 15 lines are column headers (some columns are unused), then
every 12 subsequent lines is one record.

What is the easiest way to get each record to appear in Excel (2007) on a
single line, one field per column?

Thank you





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
Generate a TAB When Converting From Excel to Delimited Text ConfusedNHouston Excel Discussion (Misc queries) 1 January 31st 08 05:56 PM
Converting Excel file to text delimited file Kiran Veeramallu[_2_] Excel Discussion (Misc queries) 3 May 1st 07 07:04 PM
Save trailing empty cells in a tab delimited text file osios Excel Discussion (Misc queries) 3 April 24th 06 08:54 AM
Why can't I Export selected cells to tab-delimited text file? JE McGimpsey Excel Discussion (Misc queries) 1 November 28th 05 05:33 PM
Converting Excel data into semicolon delimited text file danmcgov Excel Discussion (Misc queries) 1 April 14th 05 04:30 PM


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