![]() |
Trouble loading large CSV files into Excel? You need TextPipe!
Microsoft Excel has an in-built limit of 65000 rows, and TextPipe can help you work around this by splitting CSV files into two or more file fragments each with 65000 rows.
Here's How
- On the Filters to Apply Tab, in the All Available Filters view, double-click Filters\Special\Split files
- In the right hand view, choose the radio button After lines, and set the number to 65000.
- Set the Split filename to %f_%3.3d.%e. This numbers the output files but keeps them as .CSV files.
- Click File Output: test mode at the base of the list. Set Output Mode to Normal
- Drag and drop the file to split onto the Files to Process tab
- Click Go at the base of TextPipe's window
TextPipe can also be used for many other useful things, such as searching and replacing just in a specified column or row, or a CSV field.
And...TextPipe handles multi-Gigabyte files with ease, and can be automated or scripted. Download now -->
TextPipe also has a huge range of filters for code page conversions, conversions to/from Unicode, restricting changes to a given area, and you can even write custom filters in VBScript or JScript.
Like us...you'll find yourself using TextPipe again and again for all kinds of text-processing tasks.
About the Excel row limit
Older versions of Excel (up to Excel 2003) hold at most 65,536 rows per worksheet, which is why the steps above split at 65,000. Current versions allow 1,048,576 rows, but very large CSV files still load slowly, and many other tools and import wizards keep smaller limits. Splitting by line count gives you files that open quickly and import cleanly.
Example: a 200,000-line export
A sales export called sales.csv has a header row and 199,999 data lines. With the split set to 65,000 lines and the filename pattern %f_%3.3d.%e, TextPipe produces:
sales_001.csv 65,000 lines sales_002.csv 65,000 lines sales_003.csv 65,000 lines sales_004.csv remaining 5,000 lines
Each part keeps the .csv extension, so Excel opens it directly. Only the first part contains the original header row. To give every part a header, add the Add Header filter after the split, with the column names as the text.
Things to check
- Quoted fields can contain line breaks. If your data has them, make sure the split is by record and not in the middle of a quoted value.
- Choose Normal output mode only after testing, so that you do not overwrite files by accident.
- Splitting is the reverse of the merge files filter, which joins the parts back together later.
Related pages
Before splitting, you can clean the file with the filters in the CSV guide, remove unwanted lines with grep, or sort it so related rows land in the same part. If the data came from a mainframe, see EBCDIC to ASCII conversion. For work that happens inside Excel files, ExcelPipe can search and replace across many workbooks at once. The data conversion solutions page covers further examples.
Try it now for free. Setup takes only 1 minute
Installing TextPipe is a simple process that takes only 1 minute.
Need To Convert Data Right Now?
We offer a 90-day money back guarantee, and accept payment online via credit card, and offline via check, wire and purchase order.
Need More Information About TextPipe Pro?
Please click here.
Ask Us a Question!
