+ Reply to Thread
Results 1 to 7 of 7

VBA needed to extract specific data from data dump list

  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    St Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    VBA needed to extract specific data from data dump list

    I've come up with a very crude solution to my problem that involves multiple vlookups, countif and left statements to get the data I need from this list, but the problem is these reports can run 35,000+ rows long due to the data in column F. So my formula bogs down the file and crashes excel when the lists get too long or I try to do other analysis. I've attached a sample list that gets exported from our management software.

    All I want from this list is to get the person's name who created the log (cell A2, additional rows below) and the type of log they created (column E) extracted to another sheet. So the new sheet would have column A = Created By, column B = Contact Method.

    Please help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA needed to extract specific data from data dump list

    This looks simple to me. Unless I misunderstand your requirement.

    in A2 you have *Created By: Nikki Acuna

    In A48 you have *Created By: Alanna Bencivenga

    so in your new sheet Rows A2 to A47 should read Nikki Acuna

    And B2 will read whatever was last typed in column E

    Is that right?

    No dates?

    If so all you need are three quite simple formulae.

    Please confirm.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    05-27-2010
    Location
    St Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: VBA needed to extract specific data from data dump list

    Thanks for the reply mehmetcik. Your suggestion would work if all the rows aligned and were consistent in the number of rows between "created by". Column F, creates random rows based on the length of the actual log, so doing a 1 for 1 formula leaves any given number of spaces in between. Also each person could have a different number of logs, so it could be 5 rows between people or 500. With all the merged cells in the file, random number of rows between log types and people, I'm looking for some way to find the pertinent data and extract it.

    Correct no dates.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA needed to extract specific data from data dump list

    Ok lets do the first two formulae

    ok

    this formula in cell A2 of a new sheet and fill down

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    this formula in cell b2 of the new sheet and fill down

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Try the formulae and let me know how long they take.

    The formula could be created by a macro, the same macro could also tidy up the data.

    Do you want a Macro or an array formula?

    This Macro will create your formulae for you.
    It copy pastes values to speed things up.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 02-13-2015 at 02:13 PM.

  5. #5
    Registered User
    Join Date
    05-27-2010
    Location
    St Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: VBA needed to extract specific data from data dump list

    Thanks for the updated response mehmetcik. The formulas work, but it puts me back into the same situation I had in the beginning, potentially 30,000+ rows of information, using multiple formulas. I can parse the list down using the sort feature, to only pull the data I want from here, but this would be another step in a process that gets done several times per month. Ideally, I'm looking for a solution that breaks down the data dump and then pulls the relevant information over in a consolidated format that can be seamlessly transferred into a much bigger dashboard report.

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA needed to extract specific data from data dump list

    Its ok. Now all we need to do is to sort the data and delete the dross

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-27-2010
    Location
    St Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: VBA needed to extract specific data from data dump list

    This works great. Thank you.

+ 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. [SOLVED] macro needed to extract specific columns out of multiple columns with their row data
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-07-2014, 12:49 AM
  2. Replies: 11
    Last Post: 12-04-2012, 02:56 AM
  3. VBA needed to extract data from specific cells in different worksheet
    By woolen in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-08-2011, 02:19 PM
  4. Data dump of charted data needed
    By maani in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 06-23-2009, 08:23 AM
  5. [SOLVED] extract key words/data from multiple files -dump in new worksheet
    By MikeR-Oz in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 03-20-2006, 04:15 AM

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