How many rows and columns in Excel 2022

The intersection of a column and row is called a cell. The cell is identified by the row number and column header, for example, B3.

How many rows and columns in Excel 2022

Number of columns and rows in one sheet

Depending on the Excel version you use, there is a different number of rows and columns.

Excel 2003

In Excel 2003 there are 65,536 rows and 256 columns (IV).

Excel 2007 and newer

Since Excel 2007 the number of rows and columns is much bigger than before. This time there are 1,048,576 rows and 16,384 columns (XFD).

Therefore the last cell is XFD1048576.

Determining the column number

To know the number of rows is easy, but it’s much more complicated with the column header. How you can quickly determine what is the header for the column 2000?

You can use the following formula.

1

=LEFT(ADDRESS(ROW(),A2,2),FIND("$",ADDRESS(ROW(),A2,2),1)-1)

Just enter it to a cell and type the number into cell A2.

The column header for the 2000th column is BXX.

How many rows and columns in Excel 2022

If you want to know more about other ways to get column header, read an article about this subject.

Moving one cell at a time

To move one cell left, right, up or down you can use keyboard arrows.

You can also use:

Enter – move down

Tab – move right

Shift + Enter – move up

Shift + Tab – move left

Moving to the first/last column/row

To move to the last column, use Ctrl + right arrow.

How many rows and columns in Excel 2022

To move to the last cell, use Ctrl + down arrow.

How many rows and columns in Excel 2022

It only works if you don’t have any cell in your way, otherwise, it will stop on the last cell in this area. In this case, you have to use the keyboard shortcut one more time.

In the following example, I selected cell A2. Now I press Ctrl + right arrow and the cursor stops at C2. I press one more time and it stops at E2.

To help control the size of an Excel worksheet, you can limit the number of columns and rows that a worksheet displays. In this guide, we show you how to hide (and unhide) rows and columns in Excel 2019, Excel 2016, Excel 2013, and Excel for Microsoft 365, as well as how to limit access to rows and columns using Microsoft Visual Basic for Applications (VBA).

Hide Rows and Columns in Excel

An alternative method for restricting the work area of a worksheet is to hide sections of unused rows and columns; they'll stay hidden even after you close the document. Follow the steps below to hide the rows and columns outside the range A1:Z30.

  1. Open your workbook and select the worksheet you want to hide rows and columns in. Click the header for row 31 to select the entire row.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  2. Press and hold the Shift and Ctrl keys on the keyboard. At the same time, press the down arrow key on the keyboard to select all rows from row 31 to the bottom of the worksheet. Release all the keys.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  3. Right-click one of the row headings to open the contextual menu. Select Hide.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  4. The worksheet now shows only the data in rows 1 through 30.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  5. Click the header for column AA and repeat steps 2 and 3 (using the right arrow key instead of the down arrow key) to hide all columns after column Z.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  6. Save the workbook; the columns and rows outside the range A1 to Z30 will remain hidden until you unhide them.

    You can use the same process to hide any rows or columns you want. Just select the header or headers for the row or column, right-click the header, and select Hide.

Hilary Allison / Lifewire 

Unhide Rows and Columns in Excel

When you want to view the data you hid, you can unhide the rows and columns at any time. Follow these steps to unhide the rows and columns you hid in the previous example.

  1. Open the worksheet you used to hide row 31 and higher and column AA and higher. Click the headers for row 30 (or the last visible row in the worksheet) and the row below it. Right-click the row headers and, from the menu, select Unhide.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  2. The hidden rows are restored.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  3. Now click the headers for column Z (or the last visible column) and the column to the right of it. Right-click the selected column headers and, from the menu, choose Unhide. The hidden columns are restored.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

Limit Access to Rows and Columns With VBA

You can use Microsoft Visual Basic for Applications (VBA) to temporarily limit the range of usable rows and columns in a worksheet. In this example, you'll change the properties of a worksheet to limit the number of available rows to 30 and the number of columns to 26.

Changing the scroll area is a temporary measure; it resets each time the workbook is closed and reopened.

  1. Open a blank Excel file. At the bottom of the screen, right-click the Sheet1 sheet tab. From the menu, choose View Code.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  2. The Visual Basic for Applications (VBA) editor window opens. In the left rail, locate the Properties section.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  3. Under Properties,in the right column of the ScrollArea row, click the empty box and type A1:Z30.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  4. Select File > Save and save your workbook as you normally would. Select File > Close and Return to Microsoft Excel.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  5. To make sure your change is applied, perform this test. In your worksheet, try to scroll past row 30 or column Z. If the change has been applied, Excel bounces you back to the selected range and you're unable to edit cells outside that range.

    How many rows and columns in Excel 2022
    How many rows and columns in Excel 2022

  6. To remove the restrictions, access VBA again and delete the ScrollArea range.

FAQ

  • What is the maximum limit of rows in Excel?

    Microsoft says that the maximum size of a single Excel spreadsheet is 1,048,576 rows by 16,384 columns. The maximum row height is 409 points, and the maximum column width is 255 characters.

  • How do I permanently set row and column limits in Excel?

    If you want to set a hard limit to columns or rows in an Excel spreadsheet (i.e. set it up so no additional rows or columns can be added past that set limit), unfortunately you can't. There's currently no menu option to prevent yourself or other users from adding more rows or columns you may not want. However, you can manually delete unwanted rows and columns by right-clicking the selected row(s) or column(s) and selecting Delete.

    How many columns are there in Excel 2022?

    As mentioned above, there are 16,384 columns in Excel, so that it will return the value between 1 and 16,384.

    How many rows and columns are in 365 Excel?

    Yes, Excel has maximum row limits! According to Microsoft Support (latest version): Excel's maximum row limit is 1,048,576. Columns are limited to 16,384. This applies to Excel for Microsoft 365, Excel 2019, Excel 2016, Excel 2013, Excel 2010, and Excel 2007.

    How many cells in Excel 2022?

    Quick Answer: 1,048,576 rows and 16,384 columns!

    How do I handle more than 1048576 rows in Excel?

    Re: More than 1,048,576 rows You may split csv on several files and open them one by one. Or import into the Excel using legacy wizard, it has an option from which row to start importing.