Home · Excel · Excel's row limit

Excel's row limit, and what to do when you hit it

Excel allows 1,048,576 rows and 16,384 columns per worksheet. That is per sheet, not per workbook, and it has been the same number since Excel 2007. Open a CSV with more rows than that and Excel loads the first 1,048,576 and tells you the file was not loaded completely — the rest is still in the file, just not on screen.

The exact numbers

LimitValueSince
Rows per worksheet1,048,576 (220)Excel 2007
Columns per worksheet16,384 — column XFD (214)Excel 2007
Rows in Excel 2003 and earlier65,536
Columns in Excel 2003 and earlier256 — column IV
Sheets per workbookLimited by available memory

They are powers of two because a row is addressed by a fixed-width number in the file format. The ceiling is structural, not a setting: there is no option, registry key or edition of Excel that raises it, and buying more RAM does not move it.

What actually happens when the file is bigger

Excel does not refuse the file. It reads the first 1,048,576 rows, shows a message saying the file is not loaded completely, and leaves you with a worksheet that looks perfectly normal. That is the dangerous part: a truncated file is silent afterward. Nothing on screen says "there are 400,000 more rows you cannot see", and a total computed from it is simply wrong.

If you have opened a large CSV in Excel and a total looked low, check the row count before you check anything else.

Long before the hard limit, Excel gets slow

The practical ceiling is lower than the documented one. A workbook with 300,000 rows and a dozen formula columns recalculates on every edit, and volatile functions such as OFFSET, INDIRECT and NOW recalculate on every change anywhere in the workbook. Add a few VLOOKUP columns over the full range and a keystroke can take seconds. Most people meet that wall well before they meet 1,048,576.

Five ways past it

1. Load it into the Data Model instead of the grid

Power Query and Power Pivot load data into Excel's Data Model rather than onto a worksheet, and the Data Model is not bound by the worksheet row limit. You can then pivot over more rows than a sheet can hold. This is the best answer if you are staying in Excel: nothing new to buy, and the analysis you wanted usually works on aggregates anyway.

2. Aggregate before it reaches the sheet

Ten million transaction rows are rarely the thing you need. Ten thousand daily totals usually are. If the data comes from a database, do the GROUP BY there. If it comes as a CSV, aggregate it on the way in rather than after it has arrived.

3. Split the file

Crude, and sometimes exactly right — one file per month, per region, per account. It is the fastest route when the rows genuinely belong to different people or periods. Split a CSV in your browser, by row count or by a column's value, with the header repeated in every part.

4. Put it in a database

SQLite, DuckDB or Postgres will hold it without complaint and query it quickly. The cost is SQL, and a second place your data now lives. Right answer for engineers, a real step up in effort for everyone else.

5. Use a tool with no worksheet limit

TableDI is a desktop spreadsheet workspace that runs entirely on your machine, and it holds millions of rows in one table — it has its own data engine rather than a worksheet grid, so there is no 1,048,576 line to cross. Import is not capped on any tier, including the free one, so you can point it at the file that would not open and see the row count.

What the alternatives cap out at

ToolCeilingNotes
Excel worksheet1,048,576 rowsHard limit; slows well before it
Excel Data ModelMemoryNot on a sheet — pivots and measures only
Google SheetsA published cell limit per spreadsheet (10 million at the time of writing)Cells, not rows: wide sheets hit it sooner
LibreOffice Calc1,048,576 rowsSame worksheet ceiling
Apple Numbers1,000,000 rows per tableAlso 1,000 columns
TableDIMillions of rows in one tableBounded by your machine, not by the format

Notice that Google Sheets is measured in cells. A 40-column sheet reaches ten million cells at 250,000 rows — considerably sooner than people expect when they move a large file there to escape Excel.

Before you do anything, find out how many rows you actually have

On macOS or Linux, wc -l bigfile.csv answers it in a second. On any machine, drop the file into the CSV viewer — it pages through the file rather than rendering all of it, so it opens files Excel will not, and the row count is at the top. Nothing is uploaded.

Questions people ask

What is the maximum number of rows in Excel?

1,048,576 rows per worksheet, and 16,384 columns (the last one is XFD). Those limits have applied since Excel 2007 and are the same in Microsoft 365, Excel for Mac and Excel for the web. Excel 2003 and earlier allowed 65,536 rows and 256 columns.

Can I increase the row limit in Excel?

No. It is fixed by the file format, so no setting, add-in or edition changes it. What you can do is keep the data out of the worksheet: Power Query and the Data Model hold more rows than a sheet can, and you pivot over them instead.

What happens if a CSV has more rows than Excel allows?

Excel loads the first 1,048,576 rows and warns that the file was not loaded completely. The remaining rows stay in the file but are not on the sheet — and once the message is dismissed nothing indicates the data is partial, so any total you compute is quietly wrong.

Which spreadsheet can handle more than a million rows?

Not many, because the limit is a worksheet convention: LibreOffice Calc has the same ceiling, and Google Sheets swaps it for a cell budget. Tools built on a data engine rather than a grid — TableDI, or a database with a query tool — are the practical answer.

Is the limit per sheet or per workbook?

Per worksheet. A workbook can hold as many sheets as memory allows, so 3 million rows can live as three sheets — awkward to analyze, but it does fit.

Do this on your own machine instead

TableDI is a desktop spreadsheet workspace that runs entirely on your machine. Import the file, fix it, chart it — nothing is uploaded, and there is no account to create.

Free forever, not a trial — no account, no card. macOS and Windows. What the paid tier adds.

Last reviewed 2026-09-01 by the TableDI team. Something wrong on this page? Tell us — it is one inbox, read by the people who build TableDI.