Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Excel Line Chart
  • Excel Bar Chart
  • Get column name from index in Excel Table
  • How To Perform and Interpret Regression Analysis in Excel
  • How To Insert and Customize Sparklines in Excel

References

  • Offset in Excel
  • Count rows with at least n matching values
  • How to get relative column numbers in a range in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • Count rows that contain specific values in Excel

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation require unique number
  • Excel Data validation allow uppercase only
  • Excel Data validation must begin with
  • Excel Data validation date in specific year

How to count total number of cells in a rectangular range in Excel

by

If you need to count the total number of cells in a rectangular range, you can do so with the ROWS and COLUMNS functions.

Formula

=ROWS(range)*COLUMNS(range)

Note that this formula only works for a single rectangular range of cells.

Explanation

In the example, the active cell contains this formula:

=ROWS(B4:C9)*COLUMNS(B4:C9)

How this formula works

There is no built-in function for counting the total numbers of cells in a range, so you need to use the ROWS and COLUMNS functions together. In the example, ROWS returns the total number of rows in range, and COLUMNS returns the total number of columns in range. The formula multiplies these values together and returns the result.

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • OR function Examples in Excel
  • SWITCH function example in Excel
  • How to use Excel AND Function
  • How to return blank in place of #DIV/0! error in Excel
  • Check multiple cells are equal in Excel

Date Time

  • Extract date from a date and time in Excel
  • How to calculate percent of year complete in Excel
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • Get day from date in Excel
  • Add months to date in Excel

Grouping

  • If cell contains one of many things in Excel
  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • How to randomly assign data to groups in Excel
  • Calculate conditional mode with criteria in Excel

General

  • Basic error trapping example in Excel
  • With vs Without Array Formula in Excel
  • How to make excel worksheets print on one page?
  • How to calculate profit margin percentage in Excel
  • Create dynamic workbook reference to another workbook in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning