hidden rows

richard oldcorn

Board Regular
Joined
Nov 12, 2002
Messages
169
Is there any way to Sum (or COUNT,or whatever) a col of figures where some rows are hidden, so as just to add (or COUNT,or whatever) the visible rows?

Regards,


Richard Oldcorn
Sydney , Australia
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Richard

You can use Subtotal(). Check the help for the syntax. It includes several options like Sum and Count.
 
Upvote 0
Great, many thanks. Sumproduct(109,A1:A12) sums just as I want.

But not clear what you mean by "Always enclose code between the codetags
Code:
 and
"?

Regards,

Richard
 
Upvote 0
I'm glad it solves your problem.

But not clear what you mean by "Always enclose code between the codetags

That's for the case of vba code. You should always enclose vba code between the codetags or else you lose indentation and the code will be difficult to read.

ex.:

with codetags

Code:
With Worksheets("Sheet1")
    If Var1 = 3 Then
        For j = 3 To 10
            ' some code
        Next j
    End If
End With

without codetags:

With Worksheets("Sheet1")
If Var1 = 3 Then
For j = 3 To 10
' some code
Next j
End If
End With
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top