+ Reply to Thread
Results 1 to 13 of 13

New Here.. Need help with Data Extraction in Excel

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    New Here.. Need help with Data Extraction in Excel

    Let me start by saying thanks for any help you guys can give. Here is my issue:

    Sample Data:
    Please Login or Register  to view this content.
    I need someway to look at this type data, and find the agent out of a list of 50+ agents. Once that agent is found, then I need to find the total Min of adherence. The data I need would look similar to this:

    Jackson, April 80.03
    Jackson, Theresa 84.52

    This data is dynamic as it changes often and the categories also change.

    Any Ideas?

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: New Here.. Need help with Data Extraction in Excel

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    Re: New Here.. Need help with Data Extraction in Excel

    AD_Report.xlsx

    Gotcha. here is a portion of the file. You should be able to see from here what I am looking at.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: New Here.. Need help with Data Extraction in Excel

    Hi Exhorter and Welcome to ExcelForum,


    Your problem can be solved with a VBA macro as follows:
    1. Name: Read each data line until the 'Agent:' token is found at the beginning of the line. From that the Name can be extracted.
    2. Scan until the 'Training' token is found at the beginning of the line. The next line should contain the 'Total' token at the beginning of the line. Extract the number that contains '%' on that line.
    3. Repeat 1 and 2 until there is no more data.

    It is unclear whether your data is in an Excel file or in a text file. If it's in an Excel file please upload a sample file if you want further assistance. If the data is in a text file, you have already provided the data.

    In either case, please let us know if you need additional help.

    Lewis

    PPS. Thanks for posting the file. Please let us know where you want the results.
    Last edited by LJMetzger; 07-07-2014 at 01:42 PM. Reason: Added PPS

  5. #5
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    Re: New Here.. Need help with Data Extraction in Excel

    Quote Originally Posted by LJMetzger View Post
    Hi Exhorter and Welcome to ExcelForum,


    Your problem can be solved with a VBA macro as follows:
    1. Name: Read each data line until the 'Agent:' token is found at the beginning of the line. From that the Name can be extracted.
    2. Scan until the 'Training' token is found at the beginning of the line. The next line should contain the 'Total' token at the beginning of the line. Extract the number that contains '%' on that line.
    3. Repeat 1 and 2 until there is no more data.

    It is unclear whether your data is in an Excel file or in a text file. If it's in an Excel file please upload a sample file if you want further assistance. If the data is in a text file, you have already provided the data.

    In either case, please let us know if you need additional help.

    Lewis
    Thank you Lewis. I have uploaded an Excel file of the data. I am quite new to VBA but have a general understanding of what you are talking about. Would I need to post in a separate place for help with the macro?

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: New Here.. Need help with Data Extraction in Excel

    You are in the correct place. Please let us know where you want the results to be posted (e.g. where in the Excel file).

    Lewis

  7. #7
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    Re: New Here.. Need help with Data Extraction in Excel

    It doesn't matter to me. Anywhere is fine as I am going to using this for a larger spreadsheet.

  8. #8
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    Re: New Here.. Need help with Data Extraction in Excel

    My plans are to use the Macro via a button that I will put into the spreadsheet. I will be loading new data frequently with a simple copy and paste.

  9. #9
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: New Here.. Need help with Data Extraction in Excel

    See if the attached file does what you want. Please let me know if you need any changes.

    Lewis

    Code follows:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    Re: New Here.. Need help with Data Extraction in Excel

    You are officially my hero!

    Thank you Lewis!

  11. #11
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: New Here.. Need help with Data Extraction in Excel

    My pleasure. Anything for the home of Bart Starr.

  12. #12
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    Re: New Here.. Need help with Data Extraction in Excel

    Quote Originally Posted by LJMetzger View Post
    My pleasure. Anything for the home of Bart Starr.
    HAHA.. not many PPL would know that. Nice Job.

    I do have one more question though. I have been playing around with the code and spreadsheet and would love to add a column in the output that has the Total Mins of Computer Problems.

    Computer problems will not be listed for each person so a 0 would need to be in its place if computer problems was not listed at all.

    Is this too much to ask?

    Thanks a Ton. I am attempting to break apart your code so I can learn what you have done. thanks again.

  13. #13
    Registered User
    Join Date
    07-07-2014
    Location
    Birmingham, AL
    MS-Off Ver
    2010
    Posts
    12

    Re: New Here.. Need help with Data Extraction in Excel

    I actually spoke to soon here. I was able to figure it out myself. Thanks Again for all the help.

  14. #14
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: New Here.. Need help with Data Extraction in Excel

    It was my goal to teach you to fish, not to feed you. It seems like I succeeded.

    I'm glad everything worked out. Please ask if you need any more help.

    Lewis

+ 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. Help with Excel 2010 data extraction
    By rvrkids in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2014, 02:39 PM
  2. Data extraction from web to excel
    By cmb80 in forum Excel General
    Replies: 0
    Last Post: 10-21-2010, 03:27 PM
  3. Extraction of data in Excel?
    By JoKeR.Warez in forum Excel General
    Replies: 3
    Last Post: 03-11-2009, 06:52 PM
  4. Data Extraction from Excel
    By backoffice1 in forum Excel General
    Replies: 3
    Last Post: 02-05-2008, 11:30 AM
  5. [SOLVED] [SOLVED] data extraction from excel
    By claw in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-23-2006, 04:00 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