+ Reply to Thread
Results 1 to 2 of 2

Easier Way to extract data

Hybrid View

  1. #1
    Registered User
    Join Date
    05-03-2008
    Posts
    35

    Easier Way to extract data

    Hi All,

    The attached excel file is a logfile from a tool that usually stores it as a .dat file. At the moment I have to open the file in excel and select text to columns and then filter the data. File already filtered

    Date/Time/Event/System/Data

    What I am looking for is to be able to open excel and run a script to do the above automatically.

    After this is done I would then like to be able to

    Look at the event column and check each SECS load

    for example below. I would like to store these in a separate tab with the product ID, time and recipe.

    05/04/2009 00:12:29 SECS Input 2 Product ID "F325162.1/F325161.1" selected.
    05/04/2009 00:12:30 SECS Input 2 Recipe "DEWET850" selected.

    Once the above is done I then need the process finish time for the same lots. I would like to calculate the total time taken to process all lots

    This can be filtered by Event (notice) and System (output 3)

    05/04/2009 01:08:25 Notice Output 3 Finished product (F325162.1/F325161.1) at position.
    05/04/2009 01:09:04 Notice Output 3 (Cleared) Finished product (F325162.1/F325161.1) at position.


    Can this be done with a macro? how easy would this be?

    Any help would be appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Easier Way to extract data

    Best way to present a problem like this:

    1) Provide an example of the raw .dat file
    2) Provide a workbook showing the data after you've imported it (you did that)
    3) On another sheet in the sample workbook, manually mockup the desired results.

    Make it simple for use to see the start and finish lines and we should be able to assist more quickly/accurately.

    It wouldn't hurt for you to pare that sample data down to 50-100 rows, make it easier for you to mock up the results.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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