+ Reply to Thread
Results 1 to 6 of 6

Convert xlsx to dat

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Convert xlsx to dat

    How can i convert the xlsx format to dat format?
    I am going to use the dat file to open with a professional plotting software.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,419

    Re: Convert xlsx to dat

    It depends on what a .dat format means. Assuming it is some kind of ascii text file, you may be able to use one of the save as text options. http://office.microsoft.com/en-us/ex...#_Toc326832889

    If it is some other specialty file type, then you will have to figure out what the plotting software is looking for in its dat file and see if that can be implemented from Excel.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    03-08-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Convert xlsx to dat

    Now, in the tutorial of the program I will use (ctioga2), they give an example .dat file, which this program recognizes. Is this a tab delimited ascii file?
    To create a file in this format, would I comment out the first column (column titles)?
    I have attached what I get when I save the active sheet as a tab delimited .txt
    It is larger than the max size for .txt format, so I named it .zip. Please rename as .dat or .txt to view.
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,419

    Re: Convert xlsx to dat

    they give an example .dat file, which this program recognizes. Is this a tab delimited ascii file?
    It looks to me like a tab delimited text file. I do note that, when opened in Firefox or wordpad, it looks normal -- when opened in Notepad, the carriage returns/line feeds don't show up the same.

    To create a file in this format, would I comment out the first column (column titles)?
    It would depend on what the destination application is capable of. If it has certain requirements for what is in the first column, then, you will need to meet those requirements. My own experience with 3rd party graphing applications is that they don't really care what is in the first column. They allow you to pick which columns to plot against which columns and are very flexible in this way, so it would not matter whether or not you included the column titles or not. Since it is probably easier to create the text file with the first column included, I would leave it in.

  5. #5
    Registered User
    Join Date
    03-08-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Convert xlsx to dat

    From ctioga2's tutorial,
    "By default, ctioga2 acquires data using the text backend, that reads space-separated files (spaces also include tabs)."

    So, would I need to save an excel sheet as "formatted text(Space-delimited) .prn Lotus space-delimited format."

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,419

    Re: Convert xlsx to dat

    My interpretation of that statement is that it is treating tab and space as equivalent delimiters.

    FWIW, I also noted that the same page said that, if you tell it to do so, it can parse comma delimited files (CSV) as well. ctioga2 may have enough flexibility to work with a variety of delimiters.

    Have you tried to use any of these files? At this point, I would suggest you create some test files. Maybe try tab delimited first, and see if you can get the desired results from the plotting program. Then try space delimited and/or comma delimited and see which format you find gives you the most reliable results with the least amount of effort.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1