+ Reply to Thread
Results 1 to 9 of 9

Trying to parse data I need from large text files- SOLVED

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Williamsburg, VA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Trying to parse data I need from large text files- SOLVED

    Hi!
    I'm brand new to the forum here. I work for a communications company, and I'm responsible over the next couple of days with monitoring our remote sites and how they are being impacted by Hurricane Sandy. One of my responsibilities is going through huge system reports, and parsing out the important data to send out to my coworkers. A VERY small sample of pertinent data that I'm looking for is below:

    CELL 28 COMMERCIAL POWER FAIL
    CELL 28 GENERATOR RUNNING
    CELL 32 COMMERCIAL POWER FAIL
    CELL 32 GENERATOR RUNNING
    CELL 40 COMMERCIAL POWER FAIL
    CELL 40 GENERATOR GENERATOR FAIL
    CELL 40 BATTERIES ON DISCHARGE
    CELL 40 HVAC FAIL
    CELL 40 HIGH TEMP
    CELL 68 COMMERCIAL POWER FAIL
    CELL 68 GENERATOR RUNNING
    CELL 68 GENERATOR LOW FUEL

    How do I, when I paste this data into column A, have a list appear in another column showing, for example, all sites that have generators running, or all sites that have high temp alarms? Any help I could get on this wuold be greatly appreciated.

    Thanks,
    Dave
    Last edited by d dubya; 10-28-2012 at 08:26 PM. Reason: Solved

  2. #2
    Registered User
    Join Date
    10-26-2012
    Location
    Williamsburg, VA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Trying to parse data I need from large text files

    I apologize, Jeff. I will read the forum rules and FAQ's before posting in the future.

    I have edited the title of my post. Please let me know if you still see anything wrong with it.

    Thanks,
    Dave

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Trying to parse data I need from large text files

    Dave

    What in the data represents a generator?

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Trying to parse data I need from large text files

    Can you upload a sample of your workbook and show the expected results?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Trying to parse data I need from large text files

    what codes do you want to display? you could have a series of columns with each "code" as a heading and then use this formula, copied down and across

    =IF(ISNUMBER(SEARCH(B$1,$A2,1)),"Yes","")

    i copied your example into A2:A13, and in B1 had a heading GENERATOR RUNNING
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Trying to parse data I need from large text files

    Hi D Dubya,

    Here's a routine that if you write the phrase ie COMMERCIAL POWER FAIL on your sheet (or you could use it as a header)

    then select that phrase - and run it, you'll get a listing of all the cells in A that contain that phrase.


    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Registered User
    Join Date
    10-26-2012
    Location
    Williamsburg, VA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Trying to parse data I need from large text files

    FDibbins and xladept;
    Thanks for your quick responses!. Both of these work for me.

    I really appreciate it, as I was crunched for time.

    Now to put it to use.

    Thanks again,
    Dave

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Trying to parse data I need from large text files

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Trying to parse data I need from large text files

    You're welcome!

+ 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