In Excel: a modern Excel worksheet (.xlsx) holds 1,048,576 rows and 16,384 columns (the last column is XFD); the legacy .xls format stopped at 65,536 rows and 256 columns (last column IV); Google Sheets has no fixed row limit but caps a workbook at 10 million cells, starting a new sheet at 1,000 rows by 26 columns.
Press Ctrl+↓ in an empty column to jump to the final row, 1048576.
Press Ctrl+→ in an empty row to jump to the final column, XFD.
Read the Name Box to confirm the cell address (A1048576 or XFD1).
Save as .xlsx, not .xls, to keep the full 1,048,576-row grid.
What this does
Every spreadsheet grid has a hard ceiling. Modern Excel files (.xlsx, since Excel 2007) reach exactly 1,048,576 rows and 16,384 columns — that is 2^20 rows and 2^14 columns, and the final column carries the label XFD. Older .xls files (Excel 2003 and earlier) topped out far lower at 65,536 rows and 256 columns, ending at column IV. Google Sheets works differently: it does not impose a single row number but enforces a 10-million-cell cap across the whole workbook, and a brand-new sheet opens with 1,000 rows and 26 columns that you can extend until you hit that cap. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “max lines excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a visual that makes the number obvious at a glance useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
Open a blank workbook, click any cell in an empty column and press Ctrl+↓ (or press Ctrl+End on an empty sheet). The selection jumps straight to the bottom of the grid and the Name Box reads A1048576 — the last available row. Press Ctrl+→ from A1 and it lands on XFD1, the last available column. You reach for these numbers when planning a large import, deciding whether a dataset fits, or troubleshooting why rows past a certain point seem to disappear. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. The short version of “max lines excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
Common mistakes
- Assuming the old 65,536-row .xls limit still applies — that only affects legacy files.
- Importing more than ~1 million rows of data and silently losing the overflow.
- Treating Google Sheets as if it had Excel's fixed grid, when it is the 10-million-cell cap that bites.
- Confusing the row limit with performance — Excel slows long before you reach 1,048,576 populated rows.
Frequently asked questions
How many rows can Excel have?
Modern Excel (.xlsx) supports 1,048,576 rows. Legacy .xls files are limited to 65,536.
How many columns can Excel have?
16,384 columns in .xlsx, ending at column XFD. Legacy .xls stops at 256 (column IV).
Does Google Sheets have the same limit?
No. It caps a workbook at 10 million cells rather than a fixed row count, and new sheets start at 1,000 rows by 26 columns.