+ Reply to Thread
Results 1 to 9 of 9

Copying DATA from Main sheet into different sheets

  1. #1
    Registered User
    Join Date
    03-25-2014
    Location
    australia
    MS-Off Ver
    Excel for windows 7.0.0.0
    Posts
    3

    Copying DATA from Main sheet into different sheets

    Hi

    I am new to the forum and hoping someone can help me. I have a data sheet that I enter all data into. I would like to divide the data into different sheets depending on the month the job was entered. Please see a sample I have attached. I have tried to convert the month (colE) into a figure (colF). I am hoping the data automatically copies across into the correct month sheet or perhaps I can push a button and it will do it for me. Data will get entered on a daily basis by staff but only onto the main sheet, this will then by some miracle be duplicated into the corresponding sheet without loosing any data on the main sheet. I do hope this makes sense even though I have repeated myself about 3 times
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-17-2014
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Copying DATA from Main sheet into different sheets

    I'm not sure if it is possible to automatically copy the data while classifying it. My knowledge in MS Excel isn't yet exemplary. What I do when I need to segregate data is use VLOOKUP Function to copy data based on a given value which will be manually copied and pasted on the correct sheet. In your case, I assume the order number is unique with every entry. Here's a sample if you're interested.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Copying DATA from Main sheet into different sheets

    This assumes that you have sheets named to copy to with the headers in place.
    It cleans the sheets before copying to it so you won't have double (or triple) entries.


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

  4. #4
    Registered User
    Join Date
    03-25-2014
    Location
    australia
    MS-Off Ver
    Excel for windows 7.0.0.0
    Posts
    3

    Re: Copying DATA from Main sheet into different sheets

    Thank you very much. This is exactly what I need jolivanes but have no idea how to transfer this onto my main page. I used the alt F11, insert module function and paste but when I click F5 to run it, it gives me a run time error 9. What am i doing wrong?

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Copying DATA from Main sheet into different sheets

    Could be a host of things.
    Are the dates exactly the same in the cells as in the tabs?
    Attach you file that does not work and we can have a look at it.
    No data in it that should not be on the open net though. (personal info, email addresses etc)

  6. #6
    Registered User
    Join Date
    03-25-2014
    Location
    australia
    MS-Off Ver
    Excel for windows 7.0.0.0
    Posts
    3

    Re: Copying DATA from Main sheet into different sheets

    Jolivanes. Here is a more of an idea of what I am requiring. All entries will be entered onto the entry sheet, however I need the "date in" to be copied and seperated into each month. ie all junes to go on the June sheet, all julys onto the july sheet and so on but without any data being eliminated from the main entry sheet. This will enable me to be able to view each month separately. I hope this makes sense.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Copying DATA from Main sheet into different sheets

    Try this.
    My HD crashed on the desktop so I am doing several things at once. I hope it works.
    It uses Column I as a help Column. If your original file can't handle this you'll have to change that or come back to us.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Copying DATA from Main sheet into different sheets

    I noticed that in your attachment the dates in cells D1041 and D1017 are formatted different.
    These rows will not be copied into the relevant sheets because of that.
    To fix that with the code in my attachment, add one line in the code.

    Please Login or Register  to view this content.
    A more robust code, I think, would be:
    Please Login or Register  to view this content.
    This has the advantage that the dates can be of different formats.
    However, empty cells are seen as a 1 which means that the month of January will have extra entries (all rows without dates in Column D)
    BTW, I don't have the smart indent add on installed yet.

  9. #9
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: Copying DATA from Main sheet into different sheets

    How are you making out?

+ 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. Copying from multiple sheets (same column) to a main sheet (column)
    By supernovartis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2013, 11:30 AM
  2. Replies: 0
    Last Post: 03-04-2013, 03:25 PM
  3. copying data from several sheets to one main sheet
    By jjames1978 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-08-2011, 06:45 PM
  4. Copying Specfic data from a main worksheet to several breakdown sheets.
    By itsnick in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2010, 11:47 AM
  5. Searching for data across multiple sheets and copying to one main sheet
    By truedonk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2008, 08:13 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