SheetPeek

Excel’s row limit and what to do about it

8 min readUpdated September 2026
A spreadsheet grid scrolled to its final rows

Every analyst eventually meets the same dialog: the file loaded, the sheet looks fine, and a small warning says it was “not loaded completely”. Excel has a hard, documented ceiling on worksheet size, and once a CSV crosses it the data you can see is no longer the data you have. This guide sets out the exact limits, explains what Excel does when you exceed them, and compares the four realistic ways forward — the Data Model, splitting, moving to a database, and simply using a viewer that has no such limit.

The exact numbers

A single worksheet in the .xlsx format holds a maximum of 1,048,576 rows and 16,384 columns. Those are not arbitrary figures: 1,048,576 is 2^20 and 16,384 is 2^14, which is why the last cell on a sheet is XFD1048576. The limits have been unchanged since Excel 2007 introduced the XML-based format, and they apply equally to Excel for Windows, Excel for Mac, LibreOffice Calc and Google Sheets imports of .xlsx files.

The older .xls binary format was far tighter: 65,536 rows (2^16) and 256 columns. If a colleague sends a file that stops at exactly 65,536 rows, it was saved in the legacy format — resaving as .xlsx recovers the headroom but not the rows that were already lost. A few related limits matter in practice too: a cell holds at most 32,767 characters, a worksheet name is limited to 31 characters, and the number of sheets in a workbook is bounded only by available memory.

Note the difference between the format limit and the practical limit. Long before you reach a million rows, a workbook with formulas, conditional formatting and pivot caches will become slow to recalculate and heavy to save. Many teams find that the comfortable working ceiling for an interactive sheet is somewhere between 100,000 and 300,000 rows, not the formal maximum.

What happens when you exceed it

Open a CSV with more than 1,048,576 data rows and Excel loads the first 1,048,576, then shows the message “File not loaded completely.” It does not fail, it does not mark the sheet, and it does not tell you how many rows were dropped. Close the dialog and you have a normal-looking worksheet containing an arbitrary prefix of your dataset.

The consequences are quiet and serious. Totals are understated, date ranges end early, distinct counts are wrong, and any pivot built on the sheet inherits the truncation. Because exports are usually ordered by date or by ID, the missing rows are systematically the most recent or the highest-numbered ones — precisely the part of the data most reports care about.

There is a five-second check that catches this every time: count the rows in the source file before you open it. `wc -l data.csv` on macOS or Linux, or `Get-Content data.csv | Measure-Object -Line` in PowerShell, gives the true row count. Compare it with what Excel shows at the bottom of the sheet. If the sheet ends at 1,048,576, assume truncation until proven otherwise.

Power Query and the Data Model

The row limit belongs to the worksheet grid, not to Excel as a whole. Power Query (Data → Get Data) can read a file of any size and, crucially, offers “Only Create Connection” plus “Add this data to the Data Model”. Loading into the Data Model bypasses the grid entirely: the rows live in the in-memory columnar engine behind Power Pivot, where the limit is your available RAM rather than 2^20.

From there you build PivotTables and measures against the model. A pivot can summarise fifty million rows into a few hundred cells on a worksheet quite happily, because only the summary ever touches the grid. This is the single most under-used feature in Excel for large data, and it requires no add-ins in current versions of Microsoft 365.

Even better, filter and aggregate inside the query before loading anything. Removing unneeded columns, restricting to a date range, or grouping by customer in Power Query means the heavy work happens during import and the result that reaches Excel is small by construction. The general rule: reduce first, load second.

Splitting files — and why it is usually wrong

Splitting is the reflex answer: `split -l 1000000 data.csv part_` on Unix, or a Power Query filter per chunk on Windows. It works, and it is the right move when you must feed a tool with a hard ceiling or email a piece of the data to someone. Remember to re-attach the header row to every chunk after `split`, since only the first one keeps it.

The catch is that splitting breaks every whole-dataset question. Deduplication across chunks does not work, because two copies of a record can land in different files. Distinct counts cannot be summed. Sorting is per-chunk, so “the top 100 orders” means the top 100 of one arbitrary slice. Joins silently lose rows whose partner sits in another chunk.

If you split, split along a meaningful boundary rather than by line count — one file per month, per region or per account — so that each piece is a complete unit for the questions you will ask of it. And keep the unsplit original: the moment someone asks for a company-wide total, you will need it back.

Move it into a database

Past a few million rows, or once the same analysis has to run more than twice, a database stops being overhead and starts saving time. SQLite is a single file and needs no server: `.mode csv` then `.import data.csv orders` in the shell loads a CSV in seconds. PostgreSQL’s `COPY orders FROM '/path/data.csv' CSV HEADER` is the fastest bulk path into a full relational engine.

For analytics specifically, a columnar engine is a better fit than a row store. DuckDB runs in-process, queries CSV and Parquet files directly without an import step, parallelises across cores and spills to disk when a result outgrows memory. ClickHouse covers the same ground at larger scale. Both give you `GROUP BY`, window functions and joins over datasets Excel cannot even open.

The workflow that tends to stick: load once into DuckDB or SQLite, write the query that produces the answer, and export the small result to CSV or XLSX for the people who want a spreadsheet. Excel remains an excellent presentation layer — it is just a poor storage layer for millions of rows.

Or keep it as CSV and use a viewer

Often the job is not analysis at all: you need to see the file, check that a column is populated, find the rows for one account, confirm the export ran to completion, or compare today’s file with yesterday’s. None of that requires a grid at all, and none of it requires a row limit.

A streaming, virtualised viewer reads the CSV as it is, shows the true row count, and lets you filter, sort, profile columns, find duplicates and diff two files without importing anything. SheetPeek does this entirely in the browser tab, with no upload and no account, so the payroll or customer export you are checking stays on your own machine.

One caveat worth repeating: if you then export to .xlsx, the 1,048,576-row limit returns, because it is a property of the format. For results larger than that, export to CSV or JSON instead — or narrow the result first so that the part you actually need fits comfortably in a sheet.

Choosing quickly

Under about 300,000 rows, stay in Excel — it is interactive and everyone can read the file. Between that and tens of millions of rows, load into the Data Model with Power Query and pivot against it, or explore the raw file in a local viewer. Beyond that, or for anything repeated on a schedule, put the data in DuckDB, SQLite or a warehouse and export only the summary.

Whichever route you take, verify the row count at both ends of every step. A pipeline that quietly loses rows is much more expensive than one that is slightly slower, and the 1,048,576 boundary is the single most common place where that loss happens.

Related toolSheetPeek workspaceOpen a CSV, Excel or JSON file — nothing is uploaded