I am trying to extract certain data from a text file into an Excel spreadsheet. I'm using MS Office 2010 and Outlook. I saved the emails as TEXT formatted files and now I need to pull information from the text files. I was trying to use MID & FIND to get the information that I need for my report. Here is a list of the information I need to extract from the text file:
REPORT # (the number immediately after the REPORT #)
DATE (this is the reported date)
STORE# (Store xx)
ISSUE (ADDITIONAL COMMENTS)
I will cut/paste it in here:
This is an actual email that I receive on a daily basis: (the names were xxxx out to protect their identity!)
-----------------------------------------------------------------------------------------------------------------------
From: xxxxxxxxxx.net
Sent: Sunday, September 09, 2012 6:58 PM
To: Smith, John
Subject: Location xxxx - PROBLEM Report xxxxxx - Guest xxx xxx
Store xx
Guest Relations - Web Entry
INCIDENT REPORT
REPORT #: 7795242
--------------------
REPORTED: Sunday, Sep 09, 2012 05:39 PM EST
----------------------------------------------------
ATTENTION:
----------
xxx..
IMPORTANT INSTRUCTIONS:
--------- ------------
Store XX's`s standard is to respond back to the guest within 24-48 hours and close the report
within 3 days.
Guest Information:
--------------------------
xxxx xxxx
xx xxxxxx Rd.
xxxx, xxxxx 99999
Daytime Phone: xxx-xxx-xxxx
Evening Phone: Not Provided
Email: xxxx@gmail.com
CONTACT HISTORY:
*Complaints = Emergency + Problem Reports Prior Contacts Prior Complaints*
---------------------------------------------------- -------------- -----------------
Store xx: None None
Store Information
----------------------------------------------------
0320 - STORE Y - ONLINE ORDER
Store xx
xx xxxxxx blvd
xxxx, xxxxx 99999
STORE MGR: xxxx xxxx
Store xx CORPORATE (TRUE CORP)
Corporate-RVP-xxxx xxxx
REPORT DETAILS:
---------------
Occurred: Sunday, Sep 09, 2012 04:45 PM
----------------------------------------------------
* This report contains one or more chargeable categories.
* Problem - Service Related - Speed of Service
ADDITIONAL COMMENTS:
--------------------
*** Report details were entered by Guest *** I ordered subs online to be ready for 4:45pm
pickup I arrived to pick up and no one was available (i.e. "punched
in") that could process my order. I had to wait over 10 minutes just to pay for food that I
had ordered hours ago (BTW it was not "busy") Poor customer service & unacceptable.
QUESTIONS:
----------
xxxx,xxxxxx xxxxxxx xxxx xxxxxxx xxx xx xxxx xx xx x ?
How much do you normally spend each visit?
How many people were in your party?
Did you order a sub on this visit ? No
FULFILLMENT:
------------
CONTACT xxxxx xxxxx xx xx x xxxxxxxx xx x xxx xxx
-----------------------------------------------------------------------------------------------------------------------
REPORT # (the number immediately after the REPORT #)
DATE (this is the reported date)
STORE# (Store xx)
ISSUE (ADDITIONAL COMMENTS)
I will cut/paste it in here:
This is an actual email that I receive on a daily basis: (the names were xxxx out to protect their identity!)
-----------------------------------------------------------------------------------------------------------------------
From: xxxxxxxxxx.net
Sent: Sunday, September 09, 2012 6:58 PM
To: Smith, John
Subject: Location xxxx - PROBLEM Report xxxxxx - Guest xxx xxx
Store xx
Guest Relations - Web Entry
INCIDENT REPORT
REPORT #: 7795242
--------------------
REPORTED: Sunday, Sep 09, 2012 05:39 PM EST
----------------------------------------------------
ATTENTION:
----------
xxx..
IMPORTANT INSTRUCTIONS:
--------- ------------
Store XX's`s standard is to respond back to the guest within 24-48 hours and close the report
within 3 days.
Guest Information:
--------------------------
xxxx xxxx
xx xxxxxx Rd.
xxxx, xxxxx 99999
Daytime Phone: xxx-xxx-xxxx
Evening Phone: Not Provided
Email: xxxx@gmail.com
CONTACT HISTORY:
*Complaints = Emergency + Problem Reports Prior Contacts Prior Complaints*
---------------------------------------------------- -------------- -----------------
Store xx: None None
Store Information
----------------------------------------------------
0320 - STORE Y - ONLINE ORDER
Store xx
xx xxxxxx blvd
xxxx, xxxxx 99999
STORE MGR: xxxx xxxx
Store xx CORPORATE (TRUE CORP)
Corporate-RVP-xxxx xxxx
REPORT DETAILS:
---------------
Occurred: Sunday, Sep 09, 2012 04:45 PM
----------------------------------------------------
* This report contains one or more chargeable categories.
* Problem - Service Related - Speed of Service
ADDITIONAL COMMENTS:
--------------------
*** Report details were entered by Guest *** I ordered subs online to be ready for 4:45pm
pickup I arrived to pick up and no one was available (i.e. "punched
in") that could process my order. I had to wait over 10 minutes just to pay for food that I
had ordered hours ago (BTW it was not "busy") Poor customer service & unacceptable.
QUESTIONS:
----------
xxxx,xxxxxx xxxxxxx xxxx xxxxxxx xxx xx xxxx xx xx x ?
How much do you normally spend each visit?
How many people were in your party?
Did you order a sub on this visit ? No
FULFILLMENT:
------------
CONTACT xxxxx xxxxx xx xx x xxxxxxxx xx x xxx xxx
-----------------------------------------------------------------------------------------------------------------------