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

Data Analysis

  • How to calculate average last N values in a table in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How to do a t-Test in Excel?
  • How To Insert and Customize Sparklines in Excel
  • How to Use Solver Tool in Excel

References

  • How to get first row number in range in Excel
  • Vlookup Examples in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • How to get last row in text data in Excel
  • Two-way lookup with VLOOKUP in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Prevent invalid data entering in specific cells
  • Excel Data validation exists in list
  • Excel Data validation only dates between
  • Excel Data validation require unique number

Count visible rows in a filtered list in Excel

by

This tutorial shows how to Count visible rows in a filtered list in Excel using the example below;

Formula

=SUBTOTAL(3,range)

Explanation

If you want to count the number of visible items in a filtered list, you can use the SUBTOTAL function, which automatically ignores rows that are hidden by a filter.

The SUBTOTAL function can perform calculations like COUNT, SUM, MAX, MIN, and more. (For a full list, see the table here). What makes SUBTOTAL especially interesting and useful is that it automatically ignores items that are not visible in a filtered list or table. This makes it ideal for showing how many items are visible in a list, the subtotal of visible rows, etc.

Following the example in the image above, to count the number of non-blank rows visible when a filter is active, use:

=SUBTOTAL(3,B5:B14)

If you are hiding rows manually (i.e. right-click, Hide), and not using the auto-filter, use this version instead:

=SUBTOTAL(103,B5:B14))

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon 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

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel
  • How to use Excel NOT Function
  • How to use Excel FALSE Function
  • Not Equal To ‘<>‘ operator in Excel

Date Time

  • How to calculate percent of year complete in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • Get project midpoint in Excel
  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • Get days, hours, and minutes between dates in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel
  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel

General

  • AutoFit Column Width, AutoFit Row Height in Excel
  • Customize Ribbon In Excel
  • Delete Blank Rows at Once in Excel
  • Subtotal invoices by age in Excel
  • AutoRecover file that was never saved in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning