+ Reply to Thread
Results 1 to 20 of 20

Move data from one sheet to multiple sheets

  1. #1
    Registered User
    Join Date
    09-30-2012
    Location
    Penang
    MS-Off Ver
    Excel 2007
    Posts
    14

    Move data from one sheet to multiple sheets

    Hi, i have a sheet (sheet named source) that contains hundreds of data and i would like to automatically create multiple sheet (eg. sheet named Aznan, ilyana & Nagor) using the data from the source sheet.

    Column A contains Teacher names and other columns are their reservation details.

    I would like to create sheets for each Teacher.

    Attached is the sample spreadsheet. I would like to use the data sheet named "Source" to create the other sample three sheets (sheet named Aznan, ilyana & Nagor).

    I would highly appreciate if anyone from the community could help.

    Thanks in advance
    Aznan
    Attached Files Attached Files

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

    Re: Move data from one sheet to multiple sheets

    Try this one

    Please Login or Register  to view this content.

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    Try this

    Please Login or Register  to view this content.
    Last edited by mike7952; 10-11-2012 at 01:15 PM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

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

    Re: Move data from one sheet to multiple sheets

    Mike! That is really great!
    You came up with my fav topic of dic. I will go through it and ask you questions.

  5. #5
    Registered User
    Join Date
    09-30-2012
    Location
    Penang
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Move data from one sheet to multiple sheets

    Mike, AB33, thanks for the prompt reply guys, much appreciated, both code works.

    Is it possible to also count the total number of rows on each of the newly created sheets ?

    eg. "Total Records 4"

    Please refer to the screenshot.

    excel_count_records.jpg

    Thanks in advance
    Aznan

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    Just replace the For Next loop at the bottom of the code with this

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-30-2012
    Location
    Penang
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Move data from one sheet to multiple sheets

    Mike, it worked !!...thanks again for your prompt reply, very much appreciated.

    One last request, is it possible to highlight the duplicates on Column D on each of the newly created sheets ?

    Please refer to the screenshot below:-

    highlightduplicates.jpg

    Thanks in advance
    Aznan Nagor

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    Try this

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-30-2012
    Location
    Penang
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Move data from one sheet to multiple sheets

    Mike, thanks again, it worked!!....you are a star mate!!

    Regards
    Aznan Nagor

  10. #10
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    Your welcome, please mark your thread as Solved. Select Thread Tools-> Mark thread as Solved.

  11. #11
    Registered User
    Join Date
    09-08-2011
    Location
    kolkata,india
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Move data from one sheet to multiple sheets

    sir what will be the coding if somebody had to post azan illyena and nagor in sheet 1 of different workbooks rather than different worksheets of same wb

  12. #12
    Registered User
    Join Date
    09-08-2011
    Location
    kolkata,india
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Move data from one sheet to multiple sheets

    sir what will be the coding if somebody had to post azan illyena and nagor in sheet 1 of different workbooks rather than different worksheets of same wb

  13. #13
    Registered User
    Join Date
    09-08-2011
    Location
    kolkata,india
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Move data from one sheet to multiple sheets

    thanx its working

  14. #14
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    @jaydeep,

    As per forum rules Please do not post a question in someone else's thread. Please start a new thread.

  15. #15
    Registered User
    Join Date
    09-30-2012
    Location
    Penang
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Move data from one sheet to multiple sheets

    Mike, i tried again today with lots of data but the duplicates seems not being highlighted and i get the error that reads "Error #:13 Description: Type mismatch"

    Your input will be highly appreciated.

    Thanks in advance
    Aznan

  16. #16
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    Im guessing that one of the values in column A has an invalid characters in it like one of these ".", "?", "!", "*", "/", "", "[", "]", "‘", Chr(34), "|", "<", ">", "\", ":" or that the teachers name is longer then 31 characters. Give me a few and I'll fix that.

  17. #17
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    Give this a try. if it still errors comment out this line On Error GoTo EarlyExit so the debugger will hightlight the error. And let me know what line is highlighted Yellow.

    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    09-30-2012
    Location
    Penang
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Move data from one sheet to multiple sheets

    Mike, thanks for your reply. Do you mean "Give me a few minutes" or "Give me a few examples of Teacher names" ?

    Thanks in advance
    Aznan Nagor

  19. #19
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Move data from one sheet to multiple sheets

    I ment give e a few minutes. Have you tried the newest code? And read the post on what to do if it still errors?

  20. #20
    Registered User
    Join Date
    09-30-2012
    Location
    Penang
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Move data from one sheet to multiple sheets

    Mike, i have tried the newest code and i get "Error #: 9 Description: Subscript out of range"

    Please help and thanks in advance
    Aznan Nagor

+ 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