+ Reply to Thread
Results 1 to 6 of 6

Pull Info from a Data Log and Organize into Separate Columns?

  1. #1
    Registered User
    Join Date
    03-30-2017
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    3

    Question Pull Info from a Data Log and Organize into Separate Columns?

    Good morning Excel Forum!

    I've been trying to find a way to streamline pulling specific sections of text from an program log and separating it into columns in a spreadsheet. The log is basically a daily "Audit Log" that tracks all data being imported into a program:
    Importing File: D:\CustData\REPORTNAME.txt, modified at 3/29/2017 10:35:37 PM
    Executing Custom Process (Ignore User Ignored Pages)
    End Executing Custom Process
    Executing Custom Process (Set Transaction Date)
    End Executing Custom Process
    Start Processing Teller Records (Import ID: PCTR12345)
    Total Records: 123
    Successfully Imported: 123
    Excluded: 0
    End Processing Teller Records
    Total Report Lines: 345258
    Warning: The Record\Line Ratio (0%) is below the minimum (50%) threshold, see Report File Detail report for more details.
    Archiving file: D:\CustData\REPORTNAME.txt
    End Importing File
    The log is exported into Excel spreadsheet format, from which I manually copy/paste certain parts (see Bolded above) of the log into another spreadsheet with columns separating the data:
    Date Imported Imported File Name File Creation Time Import ID Records Imported Records Excluded
    03/29/17 D:\CustData\REPORTNAME.txt modified at 3/29/2017 10:35:37 PM PCTR12345 123 0

    To clarify, I am pulling information from an Excel spreadsheet and copy/pasting it into another Excel spreadsheet. Is there a way to automate/streamline this process besides manually copy/pasting the information or is copy/pasting the information the easier route? I do this monthly so you can imagine having to sort and copy/paste 30+ days of the same type of data can get pretty tedious and is pretty much time wasting.
    Last edited by jeffs89; 03-30-2017 at 03:52 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Pull Info from a Data Log and Organize into Separate Columns?

    Post a workbook with the before copied data, and the after pasted data
    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to Quick Post button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-30-2017
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    3

    Re: Pull Info from a Data Log and Organize into Separate Columns?

    Attached are the spreadsheets I use. Rawdata is the Log that is exported from the program I use, and Final is the organized columns that I paste the selected data into.

    FYI - the log was condensed to just this particular section as there is sensitive information that I had to cut out. The position/lines of the data is always changing, so what you see on the uploaded spreadsheet isn't necessarily as the same spot through all the different logs.
    Attached Files Attached Files
    Last edited by jeffs89; 03-30-2017 at 03:49 PM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Pull Info from a Data Log and Organize into Separate Columns?

    I don't know how many records are actually imported in the "raw" file or what the actual sheet names are so you will have to modify this as necessary:
    It is intended to run from the "final" workbook.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-30-2017
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    3

    Re: Pull Info from a Data Log and Organize into Separate Columns?

    Quote Originally Posted by protonLeah View Post
    I don't know how many records are actually imported in the "raw" file or what the actual sheet names are so you will have to modify this as necessary:
    It is intended to run from the "final" workbook.
    Thanks so much for your help! Would the code still function as intended if there were other similar log actions in the same Raw Data spreadsheet? For example, data log 01/01/17 would show multiple different .TXT files being imported, but I just need to look at just one section of it. In other words, there are multiple keywords in the same log: "ImportID", "RecCount", and "Excluded" all have different data in different parts of the log.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Pull Info from a Data Log and Organize into Separate Columns?

    I thought that might be the casse. Please post a more representative workbook (raw/csv).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to match info from 2 columns and pull data from a 3rd
    By lloyd88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2015, 05:43 AM
  2. Replies: 17
    Last Post: 02-11-2014, 10:00 AM
  3. Match names in two separate column if = then pull info in 3 column
    By Bevg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-07-2013, 08:31 PM
  4. How to Organize Dated Info into the Correct Columns with Formulas
    By lottidotti in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-04-2013, 08:31 AM
  5. Pull info and Numbers from separate worksheets via keyword
    By fin23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-26-2011, 04:02 PM
  6. Organize data into separate charts
    By jebckr in forum Excel General
    Replies: 0
    Last Post: 04-03-2010, 02:46 PM
  7. Pull data from different columns based on info in column "A".
    By PowerSchoolDude in forum Excel General
    Replies: 2
    Last Post: 08-25-2009, 03:25 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