To enumerate the number of cells in a selected range, use the Columns and Rows function. This function counts both the number of columns and rows in an array.