+ Reply to Thread
Results 1 to 11 of 11

Split excel data into multiple sheets based on Employee ID

  1. #1
    Registered User
    Join Date
    04-18-2014
    Location
    Delhi
    MS-Off Ver
    Excel 2003
    Posts
    17

    Split excel data into multiple sheets based on Employee ID

    Hello Every One!!!


    My requirement is to split my excel data into multiple sheets based on Employee ID cell using macros. I have attached excel sheet with test data for more clarification. The new sheets generated should be named as Employee ID - 111011, Employee ID - 11102 and so on and should have all the data for that employee in it.


    Thanks in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Split excel data into multiple sheets based on Employee ID

    message deleted due to some reason.
    Last edited by mahaveersomani; 04-19-2014 at 01:23 AM.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Split excel data into multiple sheets based on Employee ID

    Hi, Preeti1309,

    did you try to search for this action? You should have found lots of examples for this kind of request.

    https://sites.google.com/a/madrocket...eet1-to-sheets

    Ciao,
    Holger
    Last edited by JBeaucaire; 12-27-2019 at 03:53 AM.
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    04-18-2014
    Location
    Delhi
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Split excel data into multiple sheets based on Employee ID

    Hi Hahobe!!

    I browsed many threads to track such scenario. I found that the requirements were to split a master sheet into multiple sheets on the basis of particular column. In my case Column A contains Employee ID, Employee Name, Address. I need to split the excel sheet on the basis of employee ID. And every sub sheet should contain all the values for that employee ID i.e Employee ID, Employee Name, Employee Grade, Address and base Location. Also I need that every tab should be renamed as Employee ID - 111011, Employee ID - 111002 and so on... I hope I am able to clarify my requirement.

    Regards,
    Preeti1309

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Split excel data into multiple sheets based on Employee ID

    Pl see attached file with macro.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-18-2014
    Location
    Delhi
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Split excel data into multiple sheets based on Employee ID

    Hi Sinivas!!!

    Thanks a ton!! The script works.. The only issue is..Is there any way to retain the original formatting....?

    Regards,
    Preeti

  7. #7
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Split excel data into multiple sheets based on Employee ID

    hey preeti..!!!

    use the following code and enjoy.

    HTML Code: 

    Thanks & Regards
    CA Mahaveer Somani

  8. #8
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Split excel data into multiple sheets based on Employee ID

    or u can check the attached file.
    Attached Files Attached Files

  9. #9
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Split excel data into multiple sheets based on Employee ID

    Hi, mahaveersomani,

    your code should fail in the sample file at Row1 as the entry there is Emplyee ID 111011 - your code assumes Employee ID 111011.

    Please Login or Register  to view this content.
    Ciao,
    Holger

  10. #10
    Registered User
    Join Date
    04-18-2014
    Location
    Delhi
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Split excel data into multiple sheets based on Employee ID

    Hi Mahaveer!!


    Thanks a lot for helping me out here.. Macro works on my test data...

    Regards,
    Preeti
    Attached Files Attached Files
    Last edited by Preeti1309; 04-19-2014 at 10:03 PM.

  11. #11
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Split excel data into multiple sheets based on Employee ID

    hey hahobe,

    I assumed that the word "Emplyee ID 111011" is written by mistaken...and i think i m right.


    Regards
    Veer

+ 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. Replies: 1
    Last Post: 04-12-2014, 04:03 PM
  2. [SOLVED] Split Data from one sheet into multiple sheets
    By jstewart22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2013, 06:54 PM
  3. [SOLVED] Split data in one worksheets into multiple sheets?
    By cahillct in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-14-2012, 07:51 AM
  4. Split Data to multiple Sheets
    By georgeanaprop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2010, 08:52 AM
  5. Replies: 3
    Last Post: 08-02-2006, 12:35 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