![]() |
How do I calculate only visible data (not hidden rows)?
When I sort some data and hide rows or columns formulas are calculating using
the entire database (including hidden rows). I'd like to calculate only 'visibe' data. |
How do I calculate only visible data (not hidden rows)?
Use SUBTOTAL( ) to act on only visible rows. For example, the formula:
=SUBTOTAL(9,A1:A100) (equivalent to SUM) will only add the values in A1:A100 which are visible. Other parameters can be used instead of 9 to change the function - check out Excel Help for a list of them. Hope this helps. Pete Peter wrote: When I sort some data and hide rows or columns formulas are calculating using the entire database (including hidden rows). I'd like to calculate only 'visibe' data. |
All times are GMT +1. The time now is 10:40 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com