+ Reply to Thread
Results 1 to 9 of 9

Splitting Data from 1 Sheet to Multiple Existing Sheets

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    Splitting Data from 1 Sheet to Multiple Existing Sheets

    Hey guys, I'm having some issues with a project I'm working on. I'm trying to take data imported into a sheet called "Metrics Prep" and split it into different existing sheets by client. The name of each client reside in column S. The data that needs to be updated for each client only takes one row. For example S2 contains the value "Client ABC" which has a corresponding sheet with the same name. Column T, U, V, and W all contain metrics for the client that need to be migrated to the last row of the respective client sheets with column T in the "Metrics Prep" sheet mapping to column A in each of client sheet, and so on with U-B, V-C, W-D.

    Currently I have the following macro:

    Please Login or Register  to view this content.
    This code currently executes correctly for the first column. However, when attempting to move down the rows it either moves one cell too far to the left (R3) with the current formula, and doesn't copy the next sheet name, or one cell to the right (T3) and gives me a run time error 9, when I make the following change:

    Please Login or Register  to view this content.
    I know this is probably an easy fix that's just slipping by me, but can anyone lend a hand?

    Thanks.
    Attached Files Attached Files
    Last edited by cloud19; 05-29-2013 at 12:21 PM. Reason: Added Example Spreadsheet

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    Please attach a sample and will write you a better and faster code. To attach a sample, go to advance, then attachment.

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    Alright, I've attached that to the original post. Hopefully that helps to better describe my problem.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    No, Metrics Prep is blank, so I do not know how many columns you want to copy and do not also know where the header is?
    Please attach a sample, removing any confidential info.

  5. #5
    Registered User
    Join Date
    05-28-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    I'm sorry about the confusion, but it has been sanitized, and the relevant data is included in column S, T, U, V, and W of the Metrics Prep sheet, as described in the OP.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    it has been sanitized?
    Mean? I do not see any data and can not test it. I have also failed to understand why you can not bother to put in some data.
    Last edited by AB33; 05-29-2013 at 03:21 PM.

  7. #7
    Registered User
    Join Date
    05-28-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    By sanitized I mean I have removed confidential data, and I've retained a sample of the relevant data.

    I'm sorry, I'm unsure of what's going on here, as I've now downloaded the attached example.xlsm file multiple times and each time the Metrics Prep sheet contains a sample of the relevant data in the cell range S1:W4. This is a small sample set on purpose. If the macro can be updated to work properly 3 rows is all that is needed to prove the validity.

    There is no data included in the sheets other than Metrics Prep because the point of this macro is to move the data from the Metrics Prep sheet to the other sheets. The sheet I desire to move it to is included in column S, and the metrics in column T, U, V, and W belong in columns A, B, C, and D of each sheet. For example the S2 references the sheet directly following the Metrics Prep sheet by it's title. I would then like T2, U2, V2, and W2 to be moved to that sheet, whose title is referenced in column S.

    If you're not seeing the data than I'm unsure of what's wrong, as it contains a small sample of the relevant data.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    Cloud19,
    I am sorry! It was my fault! Please accept my apology for giving you a hard time.
    Since I did not see any data in columns A, B up to k, I thought it was empty sheet.
    Please see attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-28-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Splitting Data from 1 Sheet to Multiple Existing Sheets

    No, you're fine. I apologize for being unclear about that in my previous posts. Thank you very much for assisting me.

+ 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