Last updated on November 9th, 2026 at 01:40 pm
The quickest way to count rows in Excel is to click the column letter of a column that has no blank cells, such as an ID or name column, and read the Count in the status bar at the bottom of the window. Subtract one if the column has a header. For a number you can use in a formula, type =COUNTA(A2:A500) or =ROWS(A2:A500). To count only the rows left after filtering, use =SUBTOTAL(103,A2:A500).

Method 1: The status bar
- Click the letter at the top of a column that has a value in every row.
- Look at the bottom-right of the Excel window. Count shows how many cells in the selection are not empty.
- Subtract 1 for the header row.
If Count doesn’t appear, right-click the status bar and check Count. It skips blank cells, so a column with gaps gives a lower number than the real row count. Pick a column that’s always filled in, or select the whole data range and use the row number method below. The Sum shown beside it is the quickest total too, and you can turn it into a formula with the steps for adding numbers in Excel.
Method 2: Find the last row number
Click any cell in the first column of your data and press Ctrl + Down Arrow. Excel jumps to the last filled cell before a blank. The row number on the left tells you where the data ends. If your data starts in row 2 under a header, the number of data rows is that row number minus 1. Blank cells stop the jump early, so press it again if the number looks too small.
Method 3: Formulas
| What you want | Formula | Notes |
|---|---|---|
| Rows that have something in column A | =COUNTA(A2:A500) | Counts text, numbers and dates. Skips blanks. |
| Rows that hold numbers | =COUNT(A2:A500) | Ignores text cells. |
| Every row in a range | =ROWS(A2:A500) | Counts rows whether they are empty or not. |
| Blank rows in a column | =COUNTBLANK(A2:A500) | Useful for finding gaps. |
| Rows that meet a condition | =COUNTIF(C2:C500,"Paid") | Use COUNTIFS for two or more conditions. |
| Unique values (Microsoft 365) | =ROWS(UNIQUE(A2:A500)) | Counts each distinct entry once. |
You can use whole columns, like =COUNTA(A:A)-1, so new rows are counted automatically. The -1 removes the header. Avoid this if there’s anything else in the column below your data, such as totals or notes. That matters when you insert blank rows in Excel later, because a fixed range like A2:A50 won’t always grow to include them.
Want to know how often one value appears? That’s counting the number of occurrences in Excel. Counting cells rather than rows works a little differently, as shown in counting the number of cells in Excel.
How do I count rows with data across several columns?
Add a helper column with =COUNTA(A2:D2)>0, copy it down, and count the TRUE values with =COUNTIF(E2:E500,TRUE). In Excel for Microsoft 365 you can skip the helper column with =SUM(--(BYROW(A2:D500,LAMBDA(r,COUNTA(r)))>0)).
Method 4: Count rows in a filtered list
When you filter data, the status bar shows a message like “15 of 240 records found” for a moment. For a number that stays on the sheet and updates as you change the filter, use:
=SUBTOTAL(103,A2:A500)
103 tells SUBTOTAL to count non-empty cells and skip rows hidden by a filter or hidden by hand. Use 3 instead of 103 if you want rows you hid manually to be included. Counts based on cell color need a different approach: counting highlighted cells in Excel.
Method 5: Count rows in an Excel table
If your data is formatted as a table (made by creating a table in Excel), you can refer to it by name, and the formula grows with the table:
=ROWS(Table1)counts all data rows, not including the header.- Turn on Table Design > Total Row and set the total in any column to Count. It counts only the rows visible after filtering.
How many rows can Excel hold?
Each worksheet in Excel 2007 and later has 1,048,576 rows and 16,384 columns. Press Ctrl + Down Arrow in an empty column to jump to the last one. If you need more than that, use Power Query or Power Pivot, which handle millions of rows without placing them on a sheet.
COUNTA counting too many rows
COUNTA counts more rows than I can see
Some cells look empty but contain a space, an apostrophe or a formula that returns “”. COUNTA counts all of these. Use =SUMPRODUCT(--(LEN(TRIM(A2:A500))>0)) to count only cells with visible content.
The status bar shows Average or Sum but no Count
Right-click the status bar and check Count. Numerical Count is a separate option that counts only numbers. The same menu has a Sum option, which is the quickest way to total a column in Excel without writing a formula.
The count is off by one
You probably included the header row. Start the range at row 2, or subtract 1. If the count is still higher than expected, repeated records may be the cause, so remove duplicates from the list and count again.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.