If you need a quick way to countrows that contain data, select all the cells in the first column of that data (it may not be column A). Just click the column header. The status bar, in the lower-right corner of your Excel window, will tell you the rowcount.
To augment this solution: You can select all the required cells, press F2, type 1 and press CTRL+SHIFT+ENTER which would fill all the cells with 1's. The count bottom right will provide the total number of cells. If the cells contained useful data, just immediately hit CTRL+z to undo.
For example, if you see 15R x 4C, it means you have selected a range that is 15 rows tall and 4 columns wide. To get the total number of cells selected, simply multiply these two numbers.
First, select your data range, then go to the Data tab and click on Filter. Apply the filter criteria, and Excel will display the count of rows that meet your conditions in the status bar.
To count unique rows in Excel, use the COUNTIF () function to count the number of cells that meet a specific criteria. The SUMPRODUCT () function can also be used for advanced unique rowcounting by multiplying two arrays and then summing the results.
To display the count of selectedrows immediately, utilize a VBA macro with the Worksheet Selection Change event. This macro automatically counts the rows upon selection. Alternatively, for a manual approach, a concise macro can present the row count in a message box.
In order to count the number of rows in your Excel worksheet, you need to highlight the data you want to count. To do this, click on the first cell of the data range and drag your mouse to the last cell of the range. Look at the top left of your Excel window where you will find the ‘Name Box’.