Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
deniseh
 
Posts: n/a
Default save .csv file to .sdf file

How am I able to save a .csv file to a .sdf file extension?
  #2   Report Post  
dlw
 
Posts: n/a
Default

sdf is fixed field length. Open the .csv file in excel. highlight the
entire spreadsheet. Go Format / Column / Auto-fit section
That will make the columns, or fields, the right size. then do a File /
save as / and for the save as type:, pick formatted text (space delimited)
and put a .sdf at the end of the file name.

"deniseh" wrote:

How am I able to save a .csv file to a .sdf file extension?

  #3   Report Post  
deniseh
 
Posts: n/a
Default

Thanks for this, your instructions worked very well, unfortunately what I am
trying to do with the data doesn't work, so I'm still stuck!! If I expalin a
little more it may be easier to help me (I hope) Our accounts package is
able to export data in .csv or .dbf format, I have to get data in fixed
length fields (which are stipulated) to another software package which
accepts data in .sdf format. Everywhich way I try I cannot get the data
across, it's driving me nuts. Anyway thanks for your initial help, it is
appreciated.

"dlw" wrote:

sdf is fixed field length. Open the .csv file in excel. highlight the
entire spreadsheet. Go Format / Column / Auto-fit section
That will make the columns, or fields, the right size. then do a File /
save as / and for the save as type:, pick formatted text (space delimited)
and put a .sdf at the end of the file name.

"deniseh" wrote:

How am I able to save a .csv file to a .sdf file extension?

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

I don't know what a .sdf file is, but this might help you create a file with
fixed length fields.

I'd either concatenate the cell values into another column:

=LEFT(A1&REPT(" ",5),5) & LEFT(B1&REPT(" ",4),4) & TEXT(C1,"000,000.00")

(You'll have to modify it to match what you want.)

Then I'd copy and paste to notepad and save from there. Once I figured out that
ugly formula, I kept it and just unhide that column when I wanted to export the
data.

If that doesn't work for you, maybe you could do it with a macro.

Here's a link that provides a macro:
http://google.com/groups?threadm=015...0a% 40phx.gbl

=========

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

deniseh wrote:

Thanks for this, your instructions worked very well, unfortunately what I am
trying to do with the data doesn't work, so I'm still stuck!! If I expalin a
little more it may be easier to help me (I hope) Our accounts package is
able to export data in .csv or .dbf format, I have to get data in fixed
length fields (which are stipulated) to another software package which
accepts data in .sdf format. Everywhich way I try I cannot get the data
across, it's driving me nuts. Anyway thanks for your initial help, it is
appreciated.

"dlw" wrote:

sdf is fixed field length. Open the .csv file in excel. highlight the
entire spreadsheet. Go Format / Column / Auto-fit section
That will make the columns, or fields, the right size. then do a File /
save as / and for the save as type:, pick formatted text (space delimited)
and put a .sdf at the end of the file name.

"deniseh" wrote:

How am I able to save a .csv file to a .sdf file extension?


--

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
Excel XP: File name in Title Bar not changed after Save As... Dominic Excel Discussion (Misc queries) 9 August 1st 05 12:58 PM
why cant i see .csv as save file type Adie Excel Discussion (Misc queries) 3 July 19th 05 06:42 PM
can i save an existing .xls file as a .csv file using command line craigkan Excel Discussion (Misc queries) 2 February 18th 05 02:01 PM
.CSV file format - comma or semi-colon? bavjean Excel Worksheet Functions 5 November 12th 04 12:26 PM
.CSV file format - comma or semi-colon antifashionpimp Excel Worksheet Functions 1 November 10th 04 01:18 PM


All times are GMT +1. The time now is 06:51 AM.

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"