Skip to Content
RowSlice

Guide

Excel’s Row Limit: What Happens after Row 1,048,576

Published · Updated

Every Excel worksheet has a fixed grid of 1,048,576 rows by 16,384 columns (the last cell is XFD1048576). The numbers look arbitrary, but they are powers of two: 220 rows and 214 columns. The limit has been the same since Excel 2007 introduced the .xlsx format, and it applies to the 64-bit version too — more memory does not give you more rows.

The Limits at a Glance

ProgramRowsColumnsNotes
Excel 2007 and later, Microsoft 3651,048,57616,384Per worksheet; 32,767 characters per cell
Excel 97–2003 (.xls)65,536256Still applies when saving as .xls
Google Sheets10 million cells, rising to 20 million from September 2026, or 18,278 columns, per spreadsheetRows × columns, across all tabs
LibreOffice Calc1,048,576Same row ceiling as Excel
Excel Data Model (Power Pivot)Not bound by the gridLimited by memory and file size

What Happens When a CSV Has More Rows

When you open a CSV with more than 1,048,576 lines, Excel loads rows up to the limit, then stops and shows a message that the file was not loaded completely. Everything after the last row is not in the workbook at all. There is no second sheet and no hidden overflow.

The dangerous moment is saving. If you press Save while the CSV is open, Excel writes back only what it loaded, and the original file loses every row past the limit. If you have seen that warning, close the file without saving, or use Save As with a new name.

Remember that the header takes a row too, so a sheet holds at most 1,048,575 data rows plus the header. And the row number in the corner of a worksheet is not a row count: if it reads exactly 1,048,576 you are almost certainly looking at a truncated file. How to count the rows in a CSV gives you the real number without opening the file, and explains why a line count and a row count are not the same thing.

Before the Row Limit: The Speed Limit

Many files never reach the row limit and are still painful. Excel analyses every value as it opens a CSV, deciding whether it is a number, a date or text, and applies formatting. A file of 500,000 rows and 40 columns is 20 million cells, and on an ordinary laptop that can mean minutes of waiting and a very slow workbook. Deleting unused columns, or splitting out only the rows you need, helps far more than a faster computer.

That same value-by-value analysis is what silently rewrites your data: ZIP code 02134 loses its zero and a 16-digit reference loses its last digit. If the file has to end up as a workbook, import it rather than open it — how to convert a CSV to Excel without breaking your data.

Ways to Work with Files over the Limit

  1. Split the file into parts of up to 1,000,000 rows, each with the header. Split a large CSV.
  2. Filter before opening by splitting on a column such as region or month, so each file is small.
  3. Use the Data Model via Data › Get Data › From Text/CSV › Load To › Add this data to the Data Model for PivotTables over millions of rows.
  4. Use a tool built for big data, such as DuckDB or Python, when you need to query the whole file. The guide on opening large CSV files compares the options.

A worksheet is not the only thing with a ceiling. Import screens for CRMs, e-commerce platforms and mailing tools cap uploads by rows, by megabytes or by cells, and each wants a different split — how to split a CSV to fit an import limit collects the published figures, and is there a CSV file size limit? covers the rest, from email attachments to USB drives. If Excel refuses a file that is well under the limit, why a CSV won’t open in Excel goes through the other causes.

FAQ

Frequently Asked Questions

Can I increase Excel’s row limit or get more rows with 64-bit Excel?

No. The 1,048,576-row grid is fixed in the file format rather than by your hardware, so the 64-bit version has exactly the same ceiling and more memory does not give you more rows. The ways around it are the Data Model, which holds rows outside the worksheet grid, splitting the file into parts that fit, and querying the file with a tool built for large data — opening large CSV files compares those options.

How do I know whether Excel truncated my CSV?

Check the last row number in the sheet: if the data stops at exactly row 1,048,576, you are almost certainly looking at a truncated file, and Excel warns that the file was not loaded completely as it opens. The row number is not a row count, though, so the reliable check is to count the rows in the file itself — how to count the rows in a CSV gives the real number without opening it.

I saved after the “file was not loaded completely” warning. Can I get the missing rows back?

Not from that file. Saving writes back only the rows Excel had loaded, so everything past row 1,048,576 is now gone from the CSV too. Recover from a backup, from version history in OneDrive or SharePoint, or by running the export again. Next time close the file without saving, or use Save As with a new name so the original is left untouched.

Does the 1,048,576 limit include the header row?

Yes. The header occupies a worksheet row like any other, so a sheet holds at most 1,048,575 data rows plus one header. That is why the usual advice is to split at 1,000,000 rows per part rather than at the limit exactly: it leaves room for the header and for any rows added later, with no arithmetic to get wrong.

What is the equivalent row limit in Google Sheets?

Sheets limits a whole spreadsheet by cells rather than rows, so your ceiling depends on how wide the file is. At the long-standing limit of 10 million cells, 10,000,000 ÷ 20 columns is 500,000 rows, and a 40-column file runs out at 250,000. Google began doubling the limit to 20 million cells in September 2026, which doubles those numbers once it reaches your account. The allowance covers every tab in the spreadsheet together, not each tab separately.

Does the old .xls format still have a 65,536-row limit?

Yes — Excel 97–2003 files are capped at 65,536 rows and 256 columns, and that still applies whenever you save as .xls today, even from Microsoft 365. If a colleague reports far fewer rows than you sent them, check the extension on the file they opened. Saving as .xlsx gives the full 1,048,576-row grid.

Guides

See All 20 CSV Guides