LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Dave O
 
Posts: n/a
Default

There may be a method using the Excel user interface to do this- but if
you're able to write Perl script, you may be able to write a similar
VBA script within Excel to
~ read the CSV file to import it
~ during such import process, evaluate the first item on each row and
segregate the information into separate tabs
~ perform any text-to-numeric or numeric-to-text conversions as needed
~ maintain ultimate control over treatment of data (UK dates,
significant digits within a time stamp, etc.)

Are you familiar with VBA? The code for this would look something like
Sub CSVImport()
dim Lyne as string 'variable to hold entire line of data from csv
'declare other variables here
Open "c:\filename.csv" for input as #1
do while not eof(1)
line input #1, Lyne
'much data parsing he pick out data between commas, assign to
variables
'Write to relevant tab in the workbook, depending on the first
value in each row
loop
close #1
end sub

Depending on other responses here, this may be a viable option for you,
albeit somewhat painstaking up front.

 
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
Re-formatting of dates from Excel to CSV GLS Excel Discussion (Misc queries) 2 February 7th 05 12:42 PM
Changing Dates in Excel Jackie Excel Worksheet Functions 3 January 14th 05 08:16 PM
Excel opens my file and a book1.xls, make it stop? Bob Excel Discussion (Misc queries) 6 January 7th 05 12:20 AM
How do I stop the autopaste function in Excel? Jules Excel Worksheet Functions 1 November 1st 04 09:54 PM
How do I stop automatic page breaks in excel Lesley Hutchinson Excel Worksheet Functions 0 October 31st 04 12:49 PM


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