+ Reply to Thread
Results 1 to 3 of 3

Automating Table Data Mining

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    montreal, canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Automating Table Data Mining

    Greetings Gurus,


    I am in the process of creating automation for mining data within a large table containing times, data, and type etc.

    Once the table is loaded in excel I want a macro that will do three things :

    1: Create a new sheet for each unique type and copy all the data corresponding to each sheet. (with all corresponding columns)

    2: Create a new calculation sheet and new tables within that sheet with counts for how many occurrences within the data happen each month (a new year would have a new table)

    ex:
    Please Login or Register  to view this content.

    3: Finally, I would want to gather all the types from the same year and create a new Stats sheet and new table for each year with Total, Mean, mode, median, STDEV, Sparkline (for each type).

    ex:
    Please Login or Register  to view this content.

    I know this seems like HUGE question, but any tip on where to start or even a basic macro to help me get started would be extremely welcomed.

    Many thanks,


    Robert
    Attached Files Attached Files
    Last edited by student1976; 06-26-2011 at 05:45 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macro VBA help - Automating table data mining

    If you create a small sample workbook of the kind of data you are starting with and the results you want, it will help you understand some of the details of what you are doing.

    Attaching it to a post here will help us understand as well.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    06-22-2011
    Location
    montreal, canada
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Macro VBA help - Automating table data mining

    Quote Originally Posted by mikerickson View Post
    If you create a small sample workbook of the kind of data you are starting with and the results you want, it will help you understand some of the details of what you are doing.

    Attaching it to a post here will help us understand as well.
    Thanks for your reply. I just created a test file. File was found using Google Fusion so it is not law enforcement restricted.

    I added a few of the required sheets, but obviously all unique crimes would need to have their own sheet. Also, not sure how to go around using a less complicated way to get the "unique crime type" count per month. Using sum() by hand seems so convoluted!

    Any help on automating the whole process would be much appreciated!

    Thanks
    Attached Files Attached Files
    Last edited by student1976; 06-26-2011 at 04:58 PM.

+ 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