[Help] Open a huge csv then save it into XLSX with every 1M row split into different worksheets

SevenDP

New Member
Joined
Mar 10, 2016
Messages
21
Hi Mr Excel Expert,
Please help ...
I have huge CSV file with about 4 Million rows.
I need macro to open that CSV then split it every 1 Million rows into different worksheets but still in one XLSX file.
So with 4M rows the result is one file XLSX with 4 worksheets each got 1M rows.
Because XLSX's worksheets only support about 1 Million rows.

Thanks in advance
 
Comment out the lines that have TextToColumns and re-run. This will see if the code will at least put in all of the data into the cells. If it works, you can go back and manually convert to columns.

Hi bro

Sorry for long reply ....
Your solution works !
thank you so much Mr Excel Expert !
:)
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top