+ Reply to Thread
Results 1 to 8 of 8

Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

  1. #1
    Registered User
    Join Date
    08-09-2018
    Location
    Tipperary
    MS-Off Ver
    MS Excel 2010
    Posts
    9

    Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    Hello All,

    I am new here and would really appreciate your help.


    I have a report that gets downloaded each day and may vary in lengh depending on the number of transactions. It is 37 Columns wide by. C150 Rows down.

    I want to split it onto 3 worksheets - by either Customer Name or ID No. ( 2 Columns) for onward e-mail.

    I have tried a Pivot table but its not working saying the report is too big for the screen.

    Any ideas would be welcome.

    Regards,


    Chevy RV
    Last edited by Chevy RV; 08-10-2018 at 09:40 AM. Reason: Make it clearer

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    .
    This macro will search Col A for unique terms and copies the row to a sheet with the same name. The sheets must already exist for this macro to function.
    That means you will need to create the sheets with the names / terms you are searching for on the master sheet.

    The code can be amended to search any column desired.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-09-2018
    Location
    Tipperary
    MS-Off Ver
    MS Excel 2010
    Posts
    9

    Re: Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    Hello Logit,

    I have copied in the Macro , Created the sheets but am stuck with how to change the Search Column to Column AF from Column A?

    I have changed the start of the macro from county to ID in Column AF but it is stll searching Column A and saying the Tab doesnt exist for that field.

    Also , if there are , say 10 Rows that relate to the 1 ID, will it copy the 10 of them onto the individual Tabs?


    Thanks for your help.


    Regards,

    Chevy RV

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    .
    Here is the edited version for Col AF :

    Please Login or Register  to view this content.
    Note in the above where I've inserted AF and the number 32. Column AF is Column #32, begin counting from the left side of the worksheet.

    The sheet holding all of your initial data to be searched, is named "Master" in this macro. You can name the sheet anything you want but you will need
    to edit the term "Master" to the same name you give the sheet tab. That would be the cause for the error message re: Tab Doesn't Exist.

  5. #5
    Registered User
    Join Date
    08-09-2018
    Location
    Tipperary
    MS-Off Ver
    MS Excel 2010
    Posts
    9

    Re: Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    Hello Logit,

    It's nearly there. Its copying the relavant rows across to the other worksheets perfectly but the 1st row or column headings are not being copied over to each sheet as would be needed..

    There is a blank row left at the top of the worksheet for the column headings and all.

    Any ideas on how to get this row/column headers onto each sheet?

    Your help is very much appreciated.


    Regards,


    Chevy RV

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    .
    Try this :

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-09-2018
    Location
    Tipperary
    MS-Off Ver
    MS Excel 2010
    Posts
    9

    Re: Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    Hello Logit,

    It is now returning a Compile Error : Duplicate Option statement.

    Do i also need to amend it to column AF as outlined before?

    Thanks for your help.

    Regards,

    Chevy RV

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Splitting a Downloaded Report into 3 Sheets - 1 each for 3 Customers

    Could you use the code Logit supplied in post #4 and reference the cells on the master sheet that you want copied to row one of each customer sheet?
    Looking at the file attached to post #2, if I wanted the word 'County' to be placed in cell A1 of each sheet, I could:
    1) Select the 'Macon' tab,
    2) Press the shift key then select the 'White' tab,
    3) Paste the following into cell A1: =Master!A1
    The result will be that each of the seven sheets will have that formula in cell A1
    If this doesn't solve your issue, please upload a sample showing what you expect as a final result.
    To attach a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. report splitting into two parts in excel
    By sandubandu in forum Excel General
    Replies: 2
    Last Post: 01-30-2016, 04:59 AM
  2. Agging report, openingbalance report,customer report vab code was not working
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2015, 03:38 AM
  3. Replies: 4
    Last Post: 08-18-2015, 10:02 AM
  4. Downloaded raw report to Pivot
    By puffyboy in forum Excel General
    Replies: 1
    Last Post: 12-29-2014, 09:48 PM
  5. Pivot table with customer sales data, into an individual report with specific rows
    By fireforge112 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2014, 04:36 PM
  6. 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
  7. Replies: 2
    Last Post: 02-04-2012, 12: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