ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Sum (https://www.excelbanter.com/excel-worksheet-functions/8010-conditional-sum.html)

RK

Conditional Sum
 
Is there a way to get the sum of values in a column that excludes values in
hidden rows?

The sum should update itself as more rows are hidden/unhidden.

Thanks.



Tom Ogilvy

If they are hidden with a filter then

=Subtotal(9,B1:B200)

--
Regards,
Tom Ogilvy

"RK" wrote in message
...
Is there a way to get the sum of values in a column that excludes values

in
hidden rows?

The sum should update itself as more rows are hidden/unhidden.

Thanks.





Frank Kabel

Hi
some solutions
1. if you hide/unhide the rows with a filter use
=SUBTOTAL(9,A1:A100)

2. if you manually hide these rows AND use Excel 2003 use
=SUBTOTAL(109,A1:A100)

3. If you hide the rows manually AND DO NOTuse Excel 2003
You have to use VBA to calculate the sum

"RK" wrote:

Is there a way to get the sum of values in a column that excludes values in
hidden rows?

The sum should update itself as more rows are hidden/unhidden.

Thanks.




RK

Thanks! Amazing! I use Excel 2003 & manually hide/unhide the rows.




All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com