Excel Row Limit: How Many Rows and Columns a Sheet Holds
By ExcelReady TeamUpdated 4 min read
The short answer
An Excel worksheet holds 1,048,576 rows and 16,384 columns, so the last cell is XFD1048576. This limit applies to every .xlsx file in Excel 2007 and later. Old .xls files from Excel 2003 and earlier stop at 65,536 rows and 256 columns. You can't raise the limit, but you can split data or load it into Power Query.
Key takeaways
- A modern worksheet has 1,048,576 rows and 16,384 columns. The last column is XFD.
- Old .xls files and Compatibility Mode stop at 65,536 rows and 256 columns (column IV).
- Opening a CSV with more rows than the sheet shows a File not loaded completely message, and the extra rows are dropped.
- Press Ctrl+Down Arrow (Mac: ⌘+Down Arrow) in an empty column to jump to the last row and see the limit yourself.
- For bigger data, split it across sheets or load it with Power Query into the Data Model.
On this page+
The Excel row limit is 1,048,576 rows per worksheet, and each sheet also has 16,384 columns, ending at column XFD. That size is fixed in every modern version of Excel. This guide is for anyone who imports large exports or CSV files and wants to know what fits, what happens when data is too big, and what to do instead.
How many rows and columns does Excel have?#
A worksheet in Excel 2007 and later, including Microsoft 365 and current Excel for Mac, has 1,048,576 rows and 16,384 columns. The very last cell is XFD1048576.
| Item | Excel 2007 and later (.xlsx) | Excel 2003 and earlier (.xls) |
|---|---|---|
| Rows per sheet | 1,048,576 | 65,536 |
| Columns per sheet | 16,384 (A to XFD) | 256 (A to IV) |
| Last cell | XFD1048576 | IV65536 |
Both numbers are powers of 2: 1,048,576 is 2 to the power of 20, and 16,384 is 2 to the power of 14.
A few other limits are worth knowing:
- A single cell holds up to 32,767 characters.
- A column can be up to 255 characters wide, and a row up to 409 points tall.
- The number of sheets in a workbook is limited only by your computer's memory.
How to see the last row and column yourself#
You can jump to the edge of the grid with one shortcut. Click any cell in an empty column, then:
| Go to | Windows | Mac |
|---|---|---|
| Last row (row 1,048,576) | Ctrl+Down Arrow | ⌘+Down Arrow |
| Last column (XFD) | Ctrl+Right Arrow | ⌘+Right Arrow |
| Back to A1 | Ctrl+Home | ⌃Home (⌃fn← on a laptop) |
In a column with data, the same shortcut stops at the last filled cell instead, which is how most people find the end of a list. The guide to jumping with Ctrl+Arrow explains when it stops and why.
You can also type XFD1048576 into the Name Box (left of the formula bar) and press Enter. Formulas confirm the size too: =ROWS(A:A) returns 1,048,576 and =COLUMNS(1:1) returns 16,384.
Why does my file only show 65,536 rows?#
If a sheet stops at row 65,536 and column IV, the workbook is in the old .xls format. Excel shows [Compatibility Mode] in the title bar when this happens, and it keeps the old grid so the file still opens in Excel 2003.
To get the full grid:
- Go to File > Save As.
- Choose Excel Workbook (.xlsx) as the file type.
- Close the file and open the new .xlsx copy.
On Windows, File > Info > Convert does the same job in one step.
What happens when a CSV has more than 1,048,576 rows?#
Excel opens the first 1,048,576 rows and shows a File not loaded completely message. Everything after that is simply not in the sheet. Your totals will be wrong, and if you save the file over the original CSV, the extra rows are gone for good.
Watch for the header row too. A file with exactly 1,048,576 data rows plus a header is one row too many.
The guide to importing CSV files shows the safer Data > From Text/CSV route, and CSV vs XLSX explains why a CSV has no row limit of its own: it is just text, so it can be far bigger than any sheet.
How to work with more data than the row limit#
You can't make a sheet bigger, but you have several ways around the limit:
- Split the data. Put each year or region on its own sheet or in its own file, then summarise with SUMIFS or a pivot table.
- Use Power Query. Go to Data > Get Data, load the file, and filter or group it before it reaches the sheet. Often you only need a summary, not every row.
- Load to the Data Model. In the Power Query Close & Load To box, choose Only Create Connection and tick Add this data to the Data Model. The rows stay out of the grid, but a pivot table can still summarise all of them. This is available in Excel for Windows.
- Summarise at the source. If the data comes from a database or another system, ask for a daily or monthly summary instead of raw rows.
Near the limit, Excel also gets slow. Whole-column references like A:A and heavy formulas over a million rows can take a long time to calculate. The tips in why Excel formulas are slow help here.
Can you delete or hide unused rows?#
Deleting rows does not shrink the grid. Excel adds fresh empty rows at the bottom, so the sheet always has 1,048,576. What you can do is hide the unused area so readers only see your data:
- Click the row number just below your data.
- Press Ctrl+Shift+Down Arrow (Mac: ⌘⇧+Down Arrow) to select every row to the end.
- Right-click a row number and choose Hide.
Do the same with Ctrl+Shift+Right Arrow for columns. Selecting whole rows and columns this way is covered in how to select an entire row or column.
If Ctrl+End jumps far below your data, old formatting is stretching the "used range". Delete those empty rows and columns, then save the file, and Ctrl+End should land on your real last cell.
Practise it#
Moving around a big sheet quickly is a real job-test skill. Practise the jump shortcuts in a live spreadsheet to reach the end of a list in one keystroke, and learn how cells, rows and columns work in the basics lesson. Then try the exercise on this page to check whether four monthly exports still fit in one sheet.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Four monthly CSV exports are going into one sheet under a single header row. In B7, work out how many more data rows will fit: =1048576-1-SUM(B2:B5), then press Enter.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rows | |||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | Rows left | |||
| 8 | ||||
| 9 | ||||
| 10 |
Tip: Start from the sheet's 1,048,576 rows, take away 1 for the header, then take away the total of B2:B5. The answer is 9,875.
Practise this in a lesson
Frequently asked questions
What is the maximum number of rows in Excel?
1,048,576 rows per worksheet in Excel 2007 and later, including Microsoft 365. Each sheet also has 16,384 columns, from A to XFD.
Can I increase the Excel row limit?
No. The grid size is fixed and deleting rows does not change it. To work with more data, split it over several sheets or files, or load it with Power Query into the Data Model.
Why does my Excel file only show 65,536 rows?
It is probably an old .xls file or open in Compatibility Mode. Save it as an Excel Workbook (.xlsx) and reopen it to get the full 1,048,576 rows.
What happens if a CSV file has more than 1,048,576 rows?
Excel opens the first 1,048,576 rows and warns that the file was not loaded completely. The remaining rows are not shown, and they are lost if you save over the CSV.
How many characters can one Excel cell hold?
A cell can hold up to 32,767 characters. Long text may not all show in the cell, but it is all in the formula bar.