Explanation

The ROWS function is fully automatic.

When you provide a range to ROWS, it will return a count of all rows in the range.

To count columns in a range, see theCOLUMNS function.

Excel formula: Total columns in range

Excel formula: Count cells in range

Excel ROWS function