Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default text to excel -Help

Hello all,
I have a text file as below which i need to convert to excel ...
ID=ANALOG2:TIC3601, PD=REACTOR 1 JACKET TEMP CONTROLLER, DB=1, SR=10,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 JACKET TEMP CONTROLLER, DB=2, SR=20,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 1 CORE TEMP CONTROLLER, DB=2, SR=30,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 CORE TEMP CONTROLLER, DB=1, SR=10,
RC=216;

It should look like this in excel with columnwise with header,is there
a code please help
ID PD DB SR RC
ANALOG2:TIC3601 REACTOR 1 JACKET TEMP CONTROLLER 1 10 216
ANALOG2:TIC3601 REACTOR 2 JACKET TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 1 CORE TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 2 CORE TEMP CONTROLLER 1 10 216

Thanks

A.kumar

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default text to excel -Help

I'd just import the text file into excel--delimited by commas.

Then select the first column
edit|Replace
what: ID=
with: (leave blank)
replace all

Same thing with PD=, DB=, SR= and RC= and the final semicolon.

And just add the headers manually.

If you need to do this via a macro, you could record a macro when you do it once
manually.

Kumaras wrote:

Hello all,
I have a text file as below which i need to convert to excel ...
ID=ANALOG2:TIC3601, PD=REACTOR 1 JACKET TEMP CONTROLLER, DB=1, SR=10,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 JACKET TEMP CONTROLLER, DB=2, SR=20,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 1 CORE TEMP CONTROLLER, DB=2, SR=30,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 CORE TEMP CONTROLLER, DB=1, SR=10,
RC=216;

It should look like this in excel with columnwise with header,is there
a code please help
ID PD DB SR RC
ANALOG2:TIC3601 REACTOR 1 JACKET TEMP CONTROLLER 1 10 216
ANALOG2:TIC3601 REACTOR 2 JACKET TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 1 CORE TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 2 CORE TEMP CONTROLLER 1 10 216

Thanks

A.kumar


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default text to excel -Help


using split "," then split "="
e.g.
Dim k ' Split values ,array
k = Split(Details(cnt), "|", -1, vbTextCompare)
If UBound(k) 0 Then
loSheet.Cells(Act, COL_INVOICE_DATE).Value = "Aging for " +
k(1) + ":"
loSheet.Cells(Act, COL_INVOICE_DATE).Select
With Selection.Font
.Name = "Times New Roman"
.Bold = True
End With
Act = Act + 1
End If


Dave Peterson wrote:
I'd just import the text file into excel--delimited by commas.

Then select the first column
edit|Replace
what: ID=
with: (leave blank)
replace all

Same thing with PD=, DB=, SR= and RC= and the final semicolon.

And just add the headers manually.

If you need to do this via a macro, you could record a macro when you do it once
manually.

Kumaras wrote:

Hello all,
I have a text file as below which i need to convert to excel ...
ID=ANALOG2:TIC3601, PD=REACTOR 1 JACKET TEMP CONTROLLER, DB=1, SR=10,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 JACKET TEMP CONTROLLER, DB=2, SR=20,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 1 CORE TEMP CONTROLLER, DB=2, SR=30,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 CORE TEMP CONTROLLER, DB=1, SR=10,
RC=216;

It should look like this in excel with columnwise with header,is there
a code please help
ID PD DB SR RC
ANALOG2:TIC3601 REACTOR 1 JACKET TEMP CONTROLLER 1 10 216
ANALOG2:TIC3601 REACTOR 2 JACKET TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 1 CORE TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 2 CORE TEMP CONTROLLER 1 10 216

Thanks

A.kumar


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default text to excel -Help

You sure this belongs in this thread?

moonhk wrote:

using split "," then split "="
e.g.
Dim k ' Split values ,array
k = Split(Details(cnt), "|", -1, vbTextCompare)
If UBound(k) 0 Then
loSheet.Cells(Act, COL_INVOICE_DATE).Value = "Aging for " +
k(1) + ":"
loSheet.Cells(Act, COL_INVOICE_DATE).Select
With Selection.Font
.Name = "Times New Roman"
.Bold = True
End With
Act = Act + 1
End If

Dave Peterson wrote:
I'd just import the text file into excel--delimited by commas.

Then select the first column
edit|Replace
what: ID=
with: (leave blank)
replace all

Same thing with PD=, DB=, SR= and RC= and the final semicolon.

And just add the headers manually.

If you need to do this via a macro, you could record a macro when you do it once
manually.

Kumaras wrote:

Hello all,
I have a text file as below which i need to convert to excel ...
ID=ANALOG2:TIC3601, PD=REACTOR 1 JACKET TEMP CONTROLLER, DB=1, SR=10,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 JACKET TEMP CONTROLLER, DB=2, SR=20,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 1 CORE TEMP CONTROLLER, DB=2, SR=30,
RC=216;
ID=ANALOG2:TIC3601, PD=REACTOR 2 CORE TEMP CONTROLLER, DB=1, SR=10,
RC=216;

It should look like this in excel with columnwise with header,is there
a code please help
ID PD DB SR RC
ANALOG2:TIC3601 REACTOR 1 JACKET TEMP CONTROLLER 1 10 216
ANALOG2:TIC3601 REACTOR 2 JACKET TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 1 CORE TEMP CONTROLLER 2 30 216
ANALOG2:TIC3601 REACTOR 2 CORE TEMP CONTROLLER 1 10 216

Thanks

A.kumar


--

Dave Peterson


--

Dave Peterson
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
Default font for pasted text in text boxes - Excel 2007 MS OFFICE USER EIT Excel Discussion (Misc queries) 0 March 25th 10 09:01 PM
Text not continuing to wrap for large block of text in Excel cell Mandra Charts and Charting in Excel 1 May 15th 06 07:13 PM
How to make text data export to excel in text format. ~@%.com Excel Programming 3 March 21st 06 03:16 AM
In Excel, option to enter text in cells the same as text boxes RobGMU Excel Worksheet Functions 0 October 26th 05 04:20 PM
Excel VBA: Worksheet cell .Text property: 1024 bytes text len limit loyso Excel Programming 7 May 3rd 05 02:51 PM


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

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"