View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Miguel Zapico
 
Posts: n/a
Default Summing columns in Excel?

You can use an UDF like:

Function SkipHidden(sRange As Range)
Application.Volatile
Dim result
For Each cell In sRange.Cells
If Not Rows(cell.Row).Hidden Then
result = result + cell.Value
End If
Next
SkipHidden = result
End Function

Hope this helps,
Miguel.

"CLPoulos" wrote:

Is there a easy way to sum a column of numbers in excel and ignore hidden rows?