+ Reply to Thread
Results 1 to 9 of 9

Split Data from one sheet into multiple sheets by recognizing a symbol (=)

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    Hello! In my office, we get a report from a website that comes to us in an Excel spreadsheet. We are looking to run a macro to split that data that is on that sheet into multiple sheets. I will attach a copy of the sheet to this thread. I am looking at grabbing all the information from the persons name to the next persons name. For instance, in the spreadsheet the persons name is John Doe. I want to grab that name and all the information below it until you hit the next persons name, which then I want to take it and paste it into another sheet in the same workbook. The only thing is that each report does not have the same names on it. The only thing that each report has in common is the ============= ============= in column B. Please let me know if there is something that can be done. Thank you!Name_Macro.xlsx

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    attach please desired result
    If solved remember to mark Thread as solved

  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,198

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    Dear patel45,

    please do me a favour and read any post as carefull as you can:
    I want to grab that name and all the information below it until you hit the next persons name, which then I want to take it and paste it into another sheet in the same workbook.
    I hope that answers your canned reply
    attach please desired result
    @jstewart22:
    as you donīt know the names of the persons we certainly know that TOTALS appears on the last but one line of the area to copy:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    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
    10-11-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    Thank you for the reply! This works. I have a couple of things that I am trying to do to the code that you provided. First, I would like to delete the First three Worksheets after the information has been copied. Second, I am trying to rename Sheet 4 & 5 to M_Report and N_Report. Is this doable?

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

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    I do not know how the code did not show an error on this line.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-11-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    It did throw an error without the "t", but I noticed that and fixed it myself : )

  7. #7
    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,198

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    Hi, AB33,

    you are right about that code line but still missed another one (or more correctly: two).

    @jstewart22:
    Do you mean Sheet 4 and 5 before or after the deletion?

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

  8. #8
    Registered User
    Join Date
    10-11-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    After the deletion

  9. #9
    Registered User
    Join Date
    10-11-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Split Data from one sheet into multiple sheets by recognizing a symbol (=)

    I put your code into the macro and it does work the way that I want. I also added a piece of code near the end to make Sheet 4 and Sheet 5 rename:
    Sheets("Sheet4").Name = "M_Report"
    Sheets("Sheet5").Name = "N_Report"

    This all works the way that I need it to! Thank you for your help and replies!

+ 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. [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
  2. need vba to split sheet into multiple sheets
    By thuff in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2013, 04:39 PM
  3. [SOLVED] Split large sheet in multiple 1000 row sheets
    By thotosch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2013, 06:29 AM
  4. Split Data in Home Sheet to Multiple Existing Sheets
    By tboyle35 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2012, 04:23 PM
  5. [SOLVED] Split master sheet data to multiple sheets in same workbook
    By Apple Ling in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 10:39 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