XL2000: How to Programmatically Sum Only the Visible Cells in a Range (213313)
The information in this article applies to:
This article was previously published under Q213313 SUMMARY
In Microsoft Excel, you can use a Microsoft Visual Basic for Applications custom function to sum only the visible cells in a range.
The SUM() worksheet function totals all the cells in a range, including hidden cells.
The SUBTOTAL() worksheet function ignores hidden rows only if they are part of a filtered list that was created using the AutoFilter or Advanced Filter command.
This article describes how to create the custom function Sum_Visible_Cells() which sums only the visible cells in a range.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213313 |
---|
|