+ Reply to Thread
Results 1 to 12 of 12

Copying Rows from One Sheet to another pivoting off of specific info

  1. #1
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Copying Rows from One Sheet to another pivoting off of specific info

    My issue is that I get tons of information everyday that needs to be moved from a raw data tab to individual office tabs. I attached a sample grid. What I need this to do is be more automated. In other words, I want to take the raw data I get from our parent company everyday and copy and paste it to my local grid on the raw data tab. Then I want to run a macro maybe, or something that will recognize the office that record is affiliated with and then copy the whole row from the raw data tab to the individual office tab. I do everything manually right now and it just takes too much time. I need the records on the individual office tabs to post in a new row and not write over any records that are already there from previous dates. Any help would be appreciated, thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    This is easily doable.

    One question to you - if you load data on a monday into the raw data tab, run the macro and then load data on a tuesday, would you be loading tuesday's data in the next available row of the raw data tab or will you clear monday's data and then load tuesday's data?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    I would be adding it to the raw data tab. These are monthly reports so each raw data tab gets new information added in everyday until the end of the month. Then I start a new one for the next month.

  4. #4
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    Would there be a way to do this using formulas instead of macros? The only reason I ask is because these grids are on Google Docs and I don't think they support macros. If not, that's fine, I still use local excel grids that would need this as well.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    Since you are adding the data to the raw data tab each day, is it ok if at each run of the macro, the data is cleared from the subsequent sheets and data is loaded all over again? This needs to be done to avoid duplicates being copied into the tabs.

  6. #6
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    No, that wouldn't work for this grid. The reason is because the other offices have to notate the records on the individual office tabs. In other words, every day the GM's of the outside offices will go on to the Doc and put a note in the final column of the record to explain why this record was on the report. If a record is on there, it's because it was a problem. Unless the same records would be going to the same rows each time no matter what, that wouldn't work.

    I probably should have been a little clearer about the stipulations as well. I have about 7 of these grids. Each one is for a different metric that we are judged on by our parent company. For example, one is for customer surveys. In the raw data tab, I keep all of the surveys, good or bad. I need to because these surveys are out of 10 points and I need to keep a running total on several different levels. One is the company level, then down to the individual office levels and, finally, the individual sub contractors with in the offices. If the survey is below a 9.8 it is considered to be a failure. Therefore I need something that would check the column for total score and see if it below a 9.8. If it is not, then nothing needs to happen. If it is then I need it to look at the office column, copy the record and then move it to the corresponding office. At which time the GM would go in there and notate the reason for the failure. Unfortunately, all 7 grids are for different metrics that look at different things. I figured once I knew how to get excel to copy the record over, I could figure out how to change the parameters it uses to find the records. Does that make sense?

  7. #7
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    Actually, I don't think Docs uses Macros but I saw Zoho this morning and that looks like it does. I can change to Zoho if that would make this work.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    What is Zoho?

  9. #9
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    It's an on line spreadsheet. It's basically like Google Docs. I checked it out and it seems to support macros so if that is the solution here, I can change my reports from Google Docs to Zoho if needed.

    While researching the problem, I came across another possible solution. I was thinking that instead of a macro or formula, would there be a way to show a filtered view of the raw data tab on the other sheets? In other words, I was thinking there may be a way to have one sheet of the report to be the raw data tab. Then I could have 6 more tabs representing each of the outside offices. These 6 tabs would just be a filtered view of the raw data tab, only showing data the pertains to that particular office. I am not sure how to do that without putting all of the raw data on all 6 tabs. That would make the spreadsheet way too big though. Is there another way?

  10. #10
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    Any luck here? Any help with this would be greatly appreciated.

  11. #11
    Registered User
    Join Date
    07-29-2006
    Posts
    85

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    Nothing here?

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copying Rows from One Sheet to another pivoting off of specific info

    'SHEET1 TO MANY SHEETS
    Here's a macro for parsing rows of data from one sheet to many sheets named for the same values in a specific column.It not only can parse the rows, it can create the sheets if they are missing. There is a sample sheet there where you can test this out.


    You'll edit that macro so it parses by column 2 and the main sheet is Raw:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-27-2019 at 10:08 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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