posted by
bugshaw at 02:59pm on 11/09/2009
I have a lot of CSV files (all with the same structure) to import into Excel and I need to set the data format to Text, Date etc as appropriate. There are 24 columns and it's a bit fiddly to do it manually each time in the Import Wizard. Any suggestions? I'm using Excel 2003. Cheers!
(no subject)
Ah. ActiveState: http://community.activestate.com/forum-topic/excel-files-with-activest
(no subject)
It's a work machine, they don't give me authority to install anything, so all I have is Excel. Also I don't know Perl :-)
(no subject)
(no subject)
(no subject)
It doesn't do quite what I need. If I open the CSV in Excel then change the data types, I lose some information (mostly leading zeroes) that I can't automatically recover. Instead I create a new workbook and use Data | Import External Data which prompts for a source file then a Wizard lets you sort out the delimiters and data types. I can't seem to start a macro recording _during_ the import, so the formatting recording is linked to a particular file.
I suppose I could save the files I want to format as RunMacro.csv, process, save as what I want, delete RunMacro.csv, and save the next file as RunMacro. It would be quicker than the current process!
Thanks.
(no subject)
Hope you can find a way to speed things up a little, anyway.
(no subject)
(no subject)
test,2.5,"£67.8",25/2/52,"25/2/52"
the string above in a csv file opens in excel with the test left aligned as text, the number right aligned as a generalnumber, the £67.80 as currency and the two dates as dates.
(no subject)
(no subject)
(no subject)
(no subject)
Opening 0213456, 07
gives me 213456 | 7
but "0213456","07"
should give me 0213456 | 7 ?
Darn, I'd assumed they'd been doing something sensible. Switching to quote-delimited CSVs will give problems elsewhere in the process.
(no subject)
If you delete the data from this table it is a fairly quick process to import subsequent files and export them to excel
(no subject)
If you create a dummy file where the first row has entries in the required formats, will importing the file into rows 2+ then adopt the existing formats? (expects answer 'no').