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

Data Analysis

  • Working With Tables in Excel
  • How to Use Solver Tool in Excel
  • Get column name from index in Excel Table
  • How to do a t-Test in Excel?
  • How to create dynamic reference table name in Excel

References

  • How to use Excel MMULT Function
  • How to get last row in mixed data with blanks in Excel
  • Offset in Excel
  • Two-column Lookup in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation require unique number
  • Excel Data validation number multiple 100
  • Prevent invalid data entering in specific cells
  • Excel Data validation date in next 30 days

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.

Worked Example:   How to get last row in mixed data with blanks in Excel

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.

Worked Example:   How to retrieve first match between two ranges in Excel

Post navigation

Previous Post:

How to count total columns in range in Excel

Next Post:

Check if multiple cells have same value in Excel

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

  • SWITCH function example in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • Extract multiple matches into separate rows in Excel
  • How to use Excel AND Function

Date Time

  • Dynamic date list in Excel
  • Count day of week between dates in Excel
  • How to calculate most recent day of week in Excel
  • How to calculate working days left in month in Excel
  • Get month from date in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Group arbitrary text values in Excel
  • Calculate conditional mode with criteria in Excel
  • Running count group by n size in Excel
  • Categorize text with keywords in Excel

General

  • Share Excel data with Word documents
  • AutoRecover file that was never saved in Excel
  • How to make excel worksheets print on one page?
  • 3D SUMIF for multiple worksheets in Excel
  • 44 Practical Excel IF function Examples
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning