Excel handles 1,048,576 rows per worksheet, plus a header row — so you really get 1,048,575 rows of data. That ceiling applies to Excel for Microsoft 365 and Excel 2016 through 2024 on Windows and Mac, and it has not changed since Excel 2007. The column limit is 16,384 (columns A through XFD), which gives you 17,179,869,184 cells per sheet. If your data is bigger than that, you need a different tool or a different way of loading it, and the steps below show how to confirm your version's limits, count your rows accurately, and work with data that brushes against the ceiling.
What You'll Need
- Excel installed on Windows or Mac (the limits below are for the desktop app; the web version of Excel has the same cell grid but pauses on very large files)
- A file you want to check or a rough idea of how many rows you plan to import
- A plain text editor such as Notepad or TextEdit if you need to inspect a CSV file's line count
Step-by-Step
- Confirm your version's limits first. The numbers vary slightly in old versions, so check what you actually have. In Excel, open File > Account > About Excel. Anything from Excel 2007 onward uses 1,048,576 rows by 16,384 columns. Excel 2003 and earlier used 65,536 rows by 256 columns, which is why old templates or legacy files sometimes behave strangely. Menu wording may differ slightly by version and region.
- Read the sheet size from the Name Box. Click the Name Box (the small field left of the formula bar), type A1 and press Enter, then type XFD1048576 and press Enter. If Excel jumps you to that cell without an error, your workbook uses the modern grid. If the reference is rejected, you are in an older file format or an older version, and your ceiling is lower.
- Count your existing rows reliably. Do not eyeball the scrollbar. Press Ctrl+End (Cmd+End on Mac) to jump to the last used cell. If it lands on row 1,048,576, your data was once pasted to the bottom or a stray format is padding the sheet. Alternatively, click a cell in your data and press Ctrl+Down Arrow to jump to the last contiguous row in that column.
- Count rows before importing a CSV. Open the file in a text editor that shows line numbers, or use a spreadsheet-adjacent tool. In Excel itself, the safest check is to import into a fresh sheet and look at the row number of the last record. A CSV with more than 1,048,575 data lines cannot be opened in one sheet.
- Split oversized data across sheets or files. If you have, say, 2 million rows, divide them into two or more files of under 1,048,575 rows each. Keep the header row on each file so every sheet remains self-describing, and add a source column so you can recombine later.
- Use Power Query for large imports. Go to Data > Get Data > From File > From Text/CSV (or From Workbook). Power Query loads the data without dumping every row into a worksheet, and you can choose to load only a summary to a PivotTable, which sidesteps the row limit entirely for analysis. This is the standard approach for big files.
- Move truly huge datasets to a database. Above a few million rows, use Access, SQL Server, or a CSV/Parquet file queried by Power BI or Python. Excel can then connect to that source and pull only filtered results rather than holding every row.
- Watch memory and file size, not just row count. A sheet full of long text, formulas and formatting can slow Excel long before it reaches 1,048,576 rows. If a file becomes sluggish, check for whole-column references and volatile formulas before assuming you have hit the row cap.
Common Mistakes
- Assuming 1,048,576 includes your header. It is the total number of cells in a column, not free rows. A header row leaves 1,048,575 for data.
- Pasting into a formatted full column. If a whole column is pre-formatted, Excel considers every cell in use and refuses or truncates pastes at the bottom of the sheet. Remove stray formatting from the last used cell with Ctrl+End, then delete those rows.
- Confusing the sheet limit with a workbook limit. There is no practical fixed cap on the number of sheets per workbook, but total usable memory and file size still matter.
- Relying on the web version for huge files. Excel for the web opens the same grid but is significantly slower on multi-hundred-thousand-row files and may take a long time to load.
- Treating a 1,048,576-row file as proof the data arrived. Imports that exceed the limit are silently truncated by many tools, so always compare the source's row count with what Excel shows.
Tips
- Use Ctrl+Shift+End to select everything from the active cell to the last used cell — a fast way to spot padding.
- Save large flat datasets as CSV rather than XLSX when you need to hand them to a database; CSV has no row limit, only Excel does.
- Keep a separate summary sheet with row counts (using COUNTA on a key column) so you can verify an import in seconds.
- If you only need totals or trends from a very large file, import into Power Query and load to a PivotTable instead of a worksheet.
Troubleshooting
Excel says the file is too large or will not open it. Close other workbooks first to free memory, then try opening the file on a desktop copy of Excel rather than the web version. If it still fails, import it through Power Query, which streams data more efficiently.
The bottom rows are missing after an import. This is usually truncation at the row limit or a CSV parser that stopped on a line break inside a quoted field. Check the source line count against the imported count and inspect the file in a text editor around the point where it stopped.
Ctrl+End jumps to row 1048576. Delete the rows below your real data and any stray formatting, then save and reopen. If it persists, copy just your data into a new, clean workbook.
Excel is extremely slow with far fewer rows than the limit. Look for whole-column formula references, volatile functions, and excessive conditional formatting. These cost more performance than raw row count.
Frequently Asked Questions
Does the 1,048,576 limit include the header row?
No. The limit is the total number of rows in the sheet, so a header row leaves 1,048,575 rows for data.
Is the limit different on Mac or the web version?
The grid size is the same on Excel for Mac and Excel for the web. What differs is performance — large files open and recalculate more slowly in the browser.
Can Excel handle more than a million rows with Power Pivot?
Yes. Power Pivot and Power Query can process datasets well beyond the worksheet limit, because the data is stored in the data model rather than in cells. The grid itself still stops at 1,048,576 rows.
What is the column limit?
16,384 columns, from A to XFD. Multiply that by 1,048,576 and you get 17,179,869,184 cells per sheet.
Why does an old file stop at 65,536 rows?
That was the limit in Excel 2003 and earlier. Saving in the modern .xlsx format gives you the full grid; old .xls files retain the smaller limit.