Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JodyK
 
Posts: n/a
Default Summing only those cells that aren't hidden

Is there a way to add together only those cells that aren't hidden? When
trying to do the sum function, it seems to add in the hidden cells.
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Use the SUBTOTAL function...

=SUBTOTAL(9,Range)

Hope this helps!

In article ,
"JodyK" wrote:

Is there a way to add together only those cells that aren't hidden? When
trying to do the sum function, it seems to add in the hidden cells.

  #3   Report Post  
Alan Cannon
 
Posts: n/a
Default

Use the "subtotal" function instead of sum. It has 2 parameters for input: a
function # and the range to be considered. The function # is used to give
count, average, sum, and other functions, and it works on all cells unless
you add 100 to it. The function for summing is 9, but if you use 109 it will
ignore hidden cells. Note that this function does not do well summing
horizontally, and will not ignore hidden columns if you use it that way.
When used on a vertical range it will ignore the hidden rows. See Excel help
for the subtotal function for more info.

Good luck,
AC
"JodyK" wrote in message
...
Is there a way to add together only those cells that aren't hidden? When
trying to do the sum function, it seems to add in the hidden cells.



  #4   Report Post  
Myrna Larson
 
Posts: n/a
Default

This depends on what you mean by "hidden". SUBTOTAL ignores rows that are
hidden by filtering, but NOT rows that are hidden manually.


On Fri, 9 Sep 2005 17:09:42 -0500, "Alan Cannon"
wrote:

Use the "subtotal" function instead of sum. It has 2 parameters for input: a
function # and the range to be considered. The function # is used to give
count, average, sum, and other functions, and it works on all cells unless
you add 100 to it. The function for summing is 9, but if you use 109 it will
ignore hidden cells. Note that this function does not do well summing
horizontally, and will not ignore hidden columns if you use it that way.
When used on a vertical range it will ignore the hidden rows. See Excel help
for the subtotal function for more info.

Good luck,
AC
"JodyK" wrote in message
...
Is there a way to add together only those cells that aren't hidden? When
trying to do the sum function, it seems to add in the hidden cells.


  #5   Report Post  
JodyK
 
Posts: n/a
Default

Thanks for this information. I've passed it along to the person who needed
the help.

"Myrna Larson" wrote:

This depends on what you mean by "hidden". SUBTOTAL ignores rows that are
hidden by filtering, but NOT rows that are hidden manually.


On Fri, 9 Sep 2005 17:09:42 -0500, "Alan Cannon"
wrote:

Use the "subtotal" function instead of sum. It has 2 parameters for input: a
function # and the range to be considered. The function # is used to give
count, average, sum, and other functions, and it works on all cells unless
you add 100 to it. The function for summing is 9, but if you use 109 it will
ignore hidden cells. Note that this function does not do well summing
horizontally, and will not ignore hidden columns if you use it that way.
When used on a vertical range it will ignore the hidden rows. See Excel help
for the subtotal function for more info.

Good luck,
AC
"JodyK" wrote in message
...
Is there a way to add together only those cells that aren't hidden? When
trying to do the sum function, it seems to add in the hidden cells.





  #6   Report Post  
Gord Dibben
 
Posts: n/a
Default

Myrna

A head's up.

A new feature in Excel 2003 is the addition of a double-duty SUBTOTAL function
which ignores rows hidden manually.

=SUBTOTAL(9,A1:A10) ignores rows hidden by filtering.

=SUBTOTAL(109,A1:A10) also ignores rows hidden manually.


Gord Dibben Excel MVP

On Tue, 13 Sep 2005 07:46:23 -0700, "JodyK"
wrote:

Thanks for this information. I've passed it along to the person who needed
the help.

"Myrna Larson" wrote:

This depends on what you mean by "hidden". SUBTOTAL ignores rows that are
hidden by filtering, but NOT rows that are hidden manually.


On Fri, 9 Sep 2005 17:09:42 -0500, "Alan Cannon"
wrote:

Use the "subtotal" function instead of sum. It has 2 parameters for input: a
function # and the range to be considered. The function # is used to give
count, average, sum, and other functions, and it works on all cells unless
you add 100 to it. The function for summing is 9, but if you use 109 it will
ignore hidden cells. Note that this function does not do well summing
horizontally, and will not ignore hidden columns if you use it that way.
When used on a vertical range it will ignore the hidden rows. See Excel help
for the subtotal function for more info.

Good luck,
AC
"JodyK" wrote in message
...
Is there a way to add together only those cells that aren't hidden? When
trying to do the sum function, it seems to add in the hidden cells.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to only "paste values" of cells that are not "hidden"? Danny Excel Discussion (Misc queries) 2 July 18th 05 12:46 AM
copying with hidden cells KyWilde Excel Worksheet Functions 2 May 20th 05 10:51 PM
hidden cells Kev Nurse Excel Discussion (Misc queries) 7 February 24th 05 09:47 AM
HOW DO I PREVENT HIDDEN CELLS FROM DISPLAYING WHEN I COPY Tes Excel Discussion (Misc queries) 2 February 23rd 05 04:35 PM
Calculating without including Hidden Cells LiquidFire Excel Discussion (Misc queries) 3 November 29th 04 08:35 PM


All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"