If the hidden rows are the result of filtering, you could use the Subtotal
function.
If they were all manually hidden, one approach might be to select the
visible cells only, copy them to a column with no hidden rows (or below the
hidden rows), and then create a Sum formula.
To select *only* the visible cells, select the column concerned, then:
<F5> <Special>, click "VisibleCellsOnly", then <OK>.
Right click in this selection, and choose "Copy",
And then paste to a section without any hidden rows, and then create your
new Sum formula.
If you do this often, there is a "Visible Cells" icon that you can place on
your toolbar.
Right click in the toolbar, then:
<Customize> <Commands> tab, <Edit> ,
And scroll all the way down in the Commands box, and click and drag the
"SelectVisbleCells" icon to your toolbar.
--
HTH,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
Marta said:
I have a spreadsheet that contains hidden rows (inactive accounts). I
want to put in a formula that will for example calculate the average of all
values in a column. The problem that I have is that some of the cells
contain formulas and since some of the accounts are not updated anymore they
contain #DIV/0! and that screws up my calculations. Is there a way I can
omit hidden rows from my formula? I know I can enter the formula manually
and just skip the rows, but when you're dealing with 200+ rows, it seems a
little tedious.