+ Reply to Thread
Results 1 to 3 of 3

Macros to Split an Excel File into multiple files taking into account information in Rows

  1. #1
    Registered User
    Join Date
    06-23-2016
    Location
    Uruguay
    MS-Off Ver
    Excel 2013
    Posts
    2

    Macros to Split an Excel File into multiple files taking into account information in Rows

    Hello, I am kinda new with Excel, in my work we handle Excel files that have 20+ mb file size.
    We need to send this files to our clients, hence we need to split them.
    Is there any type of macro that splits the excel file into multiple one, and also considers the information in the rows?

    As an example:
    1 AAA 1 ABCD S 485 INFO
    2 BBB 2 ABEF P 484 INFO
    3 CCC 3 QWER A 123 INFO
    4 DDD 4 TYUI A 345 INFO
    5 EEE 5 HGYJ A 646 INFO
    1 AAA 1 ABCD S 485 INFO
    2 BBB 2 ABEF P 484 INFO
    3 CCC 3 QWER A 123 INFO
    4 DDD 4 TYUI A 345 INFO
    5 EEE 5 HGYJ A 646 INFO


    Lets say that this file is endless, I need Excel to split it in multiple files, using as reference two different type of information:
    Creating files that are around 3000 rows
    When file is splited, the next file should start with an S in the E column, that means that if in order to the next file start with an S the previous one should have 2980 that is no problem
    The E column does not always follow the same pattern, but each client info starts with an S, that is what is crucial for this to succeed

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Macros to Split an Excel File into multiple files taking into account information in R

    Hi fwaszuk and welcome to the forum,

    There is a newer tool in Excel called Power Query that you can install as an add-in that will do this work.
    https://www.microsoft.com/en-us/down...4-6deafc65a865

    In the newest versions of Excel Power Query has been renamed to "Get and Transform Data".
    The idea is that you would create a new workbook and run this tool. You would point to your big workbook (might need to be a table) with all your data. Using Power Query you would filter the big data down to a filtered set of data. Then you would import that subset into this new workbook and send to your customer. You create many of these different Power Query filters that each creates workbooks and problem solved.

    Learning Power Query is a new step for us old timer Excel users. The claim is that it is much easier to learn than VBA and now that I now something about it, agree.

    Start learning Get & Transform Data (Power Query) to solve this problem.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-23-2016
    Location
    Uruguay
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Macros to Split an Excel File into multiple files taking into account information in R

    but with Power Query are we able to split an excel file into multiple files?

+ 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. VBA/macro to split an excel file into multiple files with 500 lines each
    By karambos3 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-11-2023, 12:43 PM
  2. [SOLVED] Can I split up an excel spreadsheet into multiple files by rows?
    By seespot in forum Excel General
    Replies: 14
    Last Post: 08-28-2017, 04:36 PM
  3. [SOLVED] Split Large Excel XLSX File Into Multiple XLS Files
    By EnormousRA in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-23-2016, 08:56 PM
  4. Split Large Excel XLSX File Into Multiple XLS Files
    By EnormousRA in forum Excel General
    Replies: 1
    Last Post: 10-05-2013, 09:18 AM
  5. Split Excel file into multiple files based on number of rows
    By kingtut86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 03:38 PM
  6. Split single Excel file into multiple files
    By Michael_O in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2012, 06:27 AM
  7. [SOLVED] Split Large Excel file to multiple excel files and possible save the files
    By EnzioL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-20-2012, 03:28 AM
  8. Split excel file into multiple files by lines
    By roger212 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2011, 04:46 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