+ Reply to Thread
Results 1 to 6 of 6

Filtering and splitting up data report into multiple reports

  1. #1
    Registered User
    Join Date
    11-09-2015
    Location
    San Francisco
    MS-Off Ver
    Office 2011 (MAC)
    Posts
    3

    Filtering and splitting up data report into multiple reports

    Hi all,

    Happy to have found this forum. By way of background, I'm familiar with excel from financial modeling and forecasting, but never attempted to create macros using VBA.

    I'm currently trying to resolve the following problem: On a daily basis, one of our company systems creates a report with information for multiple clients . I manually extract the information for each client into a separate table and create a new excel file for each client, containing only the information pertaining to that client. This is tedious and time consuming, and I'm trying to automate the process using a macro.

    A simplified version of our report might look something like this:

    Client Information
    A B
    A C
    A D
    B F
    B G

    Current process: I manually ..
    1. Identify how many rows exist per client by filtering column A, in this case 3 rows for Client A and 2 rows for Client B
    2. Create a new workbook for each client (new file) and copy and paste the rows pertaining to the client into the respective spreadsheet.

    The output generated from this process are 2 new excel spreadsheets. One for each of the clients, containing only the respective information. The tables in those spreadsheets look something like this:

    Table Client A
    Client Information
    A B
    A C
    A D

    Table Client B
    Client Information
    B F
    B G

    Proposed process: Build and run a macro that 1) filters Column A for each client and 2) creates a new excel spreadsheet (new file) for each client only including the information pertaining to the respective client.

    Questions:
    • Is there a way to automate this process using macros?
    • If so, what is level of complexity and general structure of such a macro?
    • In addition, what functions would I need to look up/research?

    Any tips and hints are greatly appreciated.

    Thanks,
    mrwomply

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,760

    Re: Filtering and splitting up data report into multiple reports

    If you have a list of all clients you could set up an autofilter using cliens name as the filtering criteria, then copy the fitered range and save it as a new workbook wher file name could be clients name + date prerhaps. The repeat this with the next client name in list and so forth.

    Alf

  3. #3
    Registered User
    Join Date
    11-09-2015
    Location
    San Francisco
    MS-Off Ver
    Office 2011 (MAC)
    Posts
    3

    Re: Filtering and splitting up data report into multiple reports

    Thank you, Alf.

    Any other suggestions on how to automate this process?

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Filtering and splitting up data report into multiple reports

    Hi mrwomply

    Welcome to the Forum!!!

    Is there a way to automate this process using macros?
    Yes
    If so, what is level of complexity and general structure of such a macro?
    • The Code is fairly straight forward.
    • Create Dynamic Named Range of Unique Customer Names (or Account Numbers)
    • Loop through that "Named Range" and Filter your Data Sheet for each Cell in the Named Range
    • Create a New File for each Cell
    • Copy the Visible Cells from the Data Sheet to the New File.
    • Save the New File naming it the Customer Name.
    • Loop to next Cell in the Named Range and repeat the process until all Cells in the Named Range have been processed.
    In addition, what functions would I need to look up/research?
    Researching the items listed above will get you started.

    Need help holler.

    Edit...I just noticed you're on a Mac which could possibly complicate matters a bit.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Registered User
    Join Date
    11-09-2015
    Location
    San Francisco
    MS-Off Ver
    Office 2011 (MAC)
    Posts
    3

    Re: Filtering and splitting up data report into multiple reports

    Jas--awesome, thanks so much for your post! Have access to a windows machine so will be fine in that department.

    Will get back to you with questions. Thanks again!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Filtering and splitting up data report into multiple reports

    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Please Help - Summary/Reports (Multiple columns calculation into different reports)
    By funguy757 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2014, 12:50 PM
  2. [SOLVED] PowerPivot reports with consolidated report from two tables.
    By nsr1989 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-18-2013, 06:42 PM
  3. Make a Single report from Multiple reports.
    By devpp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 05:56 AM
  4. Splitting a report into multiple new spreadsheets
    By beaker100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2013, 08:53 AM
  5. Help filtering multiple reports
    By John412 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2013, 01:23 AM
  6. Help filtering data from pasted report
    By DKS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2013, 09:01 AM
  7. Replies: 3
    Last Post: 10-31-2012, 11:52 PM
  8. [SOLVED] cycling through a raw data report and creating multiple new reports
    By rufuswilson in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-09-2012, 09:40 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