+ Reply to Thread
Results 1 to 9 of 9

Split data into multiple worksheets based empty row

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Split data into multiple worksheets based empty row

    I have tried to split using KuTool and ASAP Tool but they dont work. They can only split base on #of row. Between each of the group of my data, there is a empty row that split them. I want to split every single row from A:H to a new workbook. Why A:H becuz from A1:A8, the A5 is empty. It has to be in range, specify by me, so if the condition is met as empty from A:H, then split from there and keep going on the whole spreadsheet.

    Please help...

  2. #2
    Registered User
    Join Date
    01-17-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Split data into multiple worksheets based empty row

    Try this

    Please Login or Register  to view this content.
    Last edited by FDibbins; 01-17-2014 at 01:59 AM.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Split data into multiple worksheets based empty row

    rbs_logesh welcome to the forum

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I will add then for you - this time
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Split data into multiple worksheets based empty row

    Quote Originally Posted by rbs_logesh View Post
    Try this

    Please Login or Register  to view this content.
    Hi, the code looks great, however, once the data changes from 5 rows to 6 rows, it will split them too, which it mess the data.

    I have attach the excel to this, with the result, it suppose to create 4 different worksheet, as you can see the empty row between them.
    dasd.xlsx

    Also, it is possible to have the worksheet name pull from the "2nd row of the 6th colum of each worksheet?" Like AVA, IVA, OLA, RADA in this attachment example.

    Thanks.

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Split data into multiple worksheets based empty row

    Try this the attache file

    just open the file & press Alt + F11 and run the macro

    hope this will work
    Attached Files Attached Files
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Split data into multiple worksheets based empty row

    Wow great!! Thank you very much. I will try to figure out to rename each worksheet by reference on a cell. Thanks again!

  7. #7
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Split data into multiple worksheets based empty row

    Hi Calvinle

    Glad i could help you

    1) If the suggestion helps you, then Click * to Add Reputation & mention your valuable comments
    2) If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  8. #8
    Registered User
    Join Date
    04-29-2014
    Location
    malaysia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Split data into multiple worksheets based empty row

    Can it be split like this?

    Workbook A (Sell)
    Item Code Item name
    001 2287
    001 2296
    002 411EA
    001 412EA
    002 2287

    Workbook B (Buy)
    Item Code Item name
    001 2389
    001 2411
    002 413EA
    001 12EA
    002 2481

    To become like this with different worksheets same workbook:

    001 Item code(sheet1)
    SELL TABLE
    2287(sell table) (col for formulation)
    2296(sell table) (col for formulation)

    BUY TABLE
    412EA(buy table) (col for formulation)


    002 Item code(sheet2)
    SELL TABLE
    2287(sell table) (col for formulation)

    BUY TABLE
    413EA(buy table) (col for formulation)


    If new item code exist it will go to another sheets. The buy table item code always have EA.
    Please help me

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

    Re: Split data into multiple worksheets based empty row

    fuudin,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    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]

+ 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. Split a Worksheet into multiple Worksheets based off the DATA-SUBTOTAL
    By znpnh in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-18-2014, 04:06 PM
  2. How to split worksheet into multiple worksheets based on column content
    By jjexcels in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 11-05-2013, 11:42 AM
  3. [SOLVED] How to split worksheet into multiple worksheets based on column content
    By johnboytweed in forum Excel General
    Replies: 12
    Last Post: 10-16-2013, 12:01 PM
  4. [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
  5. Row split in to multiple rows based on cell data
    By bosuck in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2011, 05:30 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