Results 1 to 4 of 4

Parsing data from text file to create scatter plot

Threaded View

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Parsing data from text file to create scatter plot

    Hello. If I am posting to the wrong forum please let me know.
    Summary:
    I have a text file which is attached as "rawdata". It contains records of something (let's call it temperature) at different times on different days.
    My goal is to display a graph of temperature versus time so that I can visually analyze trends. I have hundreds of these files, all of different lengths. it is very important that I automate this process as much as possible.

    Detail:
    (Here I describe what I have done so far; if this is inefficient or unnecessary, feel free to tell me)
    I open Excel 2010, click File, Open, and select the file that I want to parse.
    It is a TXT file, so the Text Import Wizard comes up. For step one, I select Fixed Width.
    I select File Origin: MS-DOS (PC-8).
    On step 2 of the wizard, I create column break lines to place all dates in the far left column.
    The next column contains the first column of numbers before the first dash (-). The next column contains only the dash - I will later select "ignore this column" to eliminate them. The next column contains the time stamps.
    I continue adding column breaks in the wizard until all of the data are parsed into columns in the same manner.

    In step 3, I format the first column as "date (DMY)".
    The columns with the dashes I select "do not import".
    Everything else is "general".
    I click "finish", and the resultant workbook is attached, called "import".

    Now, as to what I want to do:
    I want to display the "temperatures" as a graph vs a date/time axis.
    The reason I find this difficult is because the temperatures and times are not in neat columns, but are in 4 columns that go in a left-to-right and top-to-bottom progression and are broken up every few lines.
    (I am interested only in numbers that are displayed immediately to the left of a time-stamp. Therefore, the "record #"s should be ignored. We can delete the rows that say "record #" if that helps and can be done automatically.)

    Can anyone help me do this?
    Thank you so much.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to create scatter plot with different data series?
    By mglwd40 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2013, 08:17 PM
  2. Replies: 3
    Last Post: 09-20-2012, 11:35 AM
  3. Replies: 2
    Last Post: 07-26-2012, 09:27 AM
  4. How do I create a data break in a scatter plot?
    By khm7x in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-02-2008, 05:56 PM
  5. how do I create a 3 dimensional plot, for example XYZ scatter plo.
    By pleasehelp in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-28-2005, 07:06 PM

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