Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a column with the following formula in every row associated with data
(ie. Q5:Q32): =IF(AND(B25<=L25,L25<480),"2","1") In the "Totals" cell (Q33), I have the following formula: {=SUM(VALUE(Q5:Q32))} But, I need the "Totals" cell to only sum the visible cells when filtering. I have tried the following VB function: Function Sum_Visible_Cells(Cells_To_Sum As Object) Application.Volatile For Each cell In Cells_To_Sum If cell.Rows.Hidden = False Then If cell.Columns.Hidden = False Then total = total + cell.Value End If End If Next Sum_Visible_Cells = total End Function But this does not work. Can anyone tell me how to fix this issue? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum of visible cells only | Excel Worksheet Functions | |||
sum only visible cells | Excel Worksheet Functions | |||
Visible Cells Only! | Excel Worksheet Functions | |||
can i sum up only visible cells? | Excel Worksheet Functions | |||
Visible cells | Excel Worksheet Functions |