Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLPoulos
 
Posts: n/a
Default Summing columns in Excel?

Is there a easy way to sum a column of numbers in excel and ignore hidden rows?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Summing columns in Excel?

Take a look at the SUBTOTAL function. It can be set to include/exclude
hidden rows.

=SUBTOTAL(109,A1:A100)

This would total only the visible rows in the range A1:A100.

HTH,
Elkar


"CLPoulos" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLPoulos
 
Posts: n/a
Default Summing columns in Excel?

I checked out the SUBTOTAL function and it looks like it only ignores hidden
cells if they have been filtered out. I am not filtering this information,
just hiding the rows. Exactly how do I set the SUBTOTAL function to exclude
hidden rows that have not been filtered?

Thanks,
Cathy

"Elkar" wrote:

Take a look at the SUBTOTAL function. It can be set to include/exclude
hidden rows.

=SUBTOTAL(109,A1:A100)

This would total only the visible rows in the range A1:A100.

HTH,
Elkar


"CLPoulos" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chip Pearson
 
Posts: n/a
Default Summing columns in Excel?

You can't. SUBTOTAL only excludes rows hidden by filters.


"CLPoulos" wrote in message
...
I checked out the SUBTOTAL function and it looks like it only
ignores hidden
cells if they have been filtered out. I am not filtering this
information,
just hiding the rows. Exactly how do I set the SUBTOTAL
function to exclude
hidden rows that have not been filtered?

Thanks,
Cathy

"Elkar" wrote:

Take a look at the SUBTOTAL function. It can be set to
include/exclude
hidden rows.

=SUBTOTAL(109,A1:A100)

This would total only the visible rows in the range A1:A100.

HTH,
Elkar


"CLPoulos" wrote:

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



  #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?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Summing columns in Excel?

That's strange. SUBTOTAL works fine on Hidden or Filtered Rows for me.

We are talking about the SUBTOTAL function right? Not the Subtotals command
found on the Data Menu?

"Chip Pearson" wrote:

You can't. SUBTOTAL only excludes rows hidden by filters.


"CLPoulos" wrote in message
...
I checked out the SUBTOTAL function and it looks like it only
ignores hidden
cells if they have been filtered out. I am not filtering this
information,
just hiding the rows. Exactly how do I set the SUBTOTAL
function to exclude
hidden rows that have not been filtered?

Thanks,
Cathy

"Elkar" wrote:

Take a look at the SUBTOTAL function. It can be set to
include/exclude
hidden rows.

=SUBTOTAL(109,A1:A100)

This would total only the visible rows in the range A1:A100.

HTH,
Elkar


"CLPoulos" wrote:

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




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chip Pearson
 
Posts: n/a
Default Summing columns in Excel?

I just tried the SUBTOTAL function with hidden (not filtered)
rows, and it definitely included the hidden rows. What version of
Excel are you using? I'm in 2003.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Elkar" wrote in message
...
That's strange. SUBTOTAL works fine on Hidden or Filtered Rows
for me.

We are talking about the SUBTOTAL function right? Not the
Subtotals command
found on the Data Menu?

"Chip Pearson" wrote:

You can't. SUBTOTAL only excludes rows hidden by filters.


"CLPoulos" wrote in
message
...
I checked out the SUBTOTAL function and it looks like it only
ignores hidden
cells if they have been filtered out. I am not filtering
this
information,
just hiding the rows. Exactly how do I set the SUBTOTAL
function to exclude
hidden rows that have not been filtered?

Thanks,
Cathy

"Elkar" wrote:

Take a look at the SUBTOTAL function. It can be set to
include/exclude
hidden rows.

=SUBTOTAL(109,A1:A100)

This would total only the visible rows in the range
A1:A100.

HTH,
Elkar


"CLPoulos" wrote:

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






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Summing columns in Excel?

xl2003 added those 100 series of parms:

=SUBTOTAL(109,A1:A100)
instead of
=SUBTOTAL(9,A1:A100)

109 will ignore manually hidden rows.
9 will not ignore them.

Chip Pearson wrote:

I just tried the SUBTOTAL function with hidden (not filtered)
rows, and it definitely included the hidden rows. What version of
Excel are you using? I'm in 2003.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Elkar" wrote in message
...
That's strange. SUBTOTAL works fine on Hidden or Filtered Rows
for me.

We are talking about the SUBTOTAL function right? Not the
Subtotals command
found on the Data Menu?

"Chip Pearson" wrote:

You can't. SUBTOTAL only excludes rows hidden by filters.


"CLPoulos" wrote in
message
...
I checked out the SUBTOTAL function and it looks like it only
ignores hidden
cells if they have been filtered out. I am not filtering
this
information,
just hiding the rows. Exactly how do I set the SUBTOTAL
function to exclude
hidden rows that have not been filtered?

Thanks,
Cathy

"Elkar" wrote:

Take a look at the SUBTOTAL function. It can be set to
include/exclude
hidden rows.

=SUBTOTAL(109,A1:A100)

This would total only the visible rows in the range
A1:A100.

HTH,
Elkar


"CLPoulos" wrote:

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




--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Saruman
 
Posts: n/a
Default Summing columns in Excel?

An easier way, is to highlight the column you want to find the sum for then
look at the bottom right hand corner of Excel, about a third of the way in,
there will be the word Sum = and the total of the highlighted cells. This
does NOT include any hidden rows.

This word can also be right clicked to change its function to one of 6
different functions

KISS - Keep It Simple Stupid
--
Saruman
---------------------------------------------------------------------------
All Outgoing Mail Scanned By Norton Antivirus 2003
---------------------------------------------------------------------------

"CLPoulos" wrote in message
...
Is there a easy way to sum a column of numbers in excel and ignore hidden

rows?


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLPoulos
 
Posts: n/a
Default Summing columns in Excel?

Thank you all, you have been very helpful. Unfortunately, I have xl2002, so
the SUBTOTAL function does not work with hidden rows in this version. Guess
I'll have to upgrade!

Cathy

"Dave Peterson" wrote:

xl2003 added those 100 series of parms:

=SUBTOTAL(109,A1:A100)
instead of
=SUBTOTAL(9,A1:A100)

109 will ignore manually hidden rows.
9 will not ignore them.

Chip Pearson wrote:

I just tried the SUBTOTAL function with hidden (not filtered)
rows, and it definitely included the hidden rows. What version of
Excel are you using? I'm in 2003.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Elkar" wrote in message
...
That's strange. SUBTOTAL works fine on Hidden or Filtered Rows
for me.

We are talking about the SUBTOTAL function right? Not the
Subtotals command
found on the Data Menu?

"Chip Pearson" wrote:

You can't. SUBTOTAL only excludes rows hidden by filters.


"CLPoulos" wrote in
message
...
I checked out the SUBTOTAL function and it looks like it only
ignores hidden
cells if they have been filtered out. I am not filtering
this
information,
just hiding the rows. Exactly how do I set the SUBTOTAL
function to exclude
hidden rows that have not been filtered?

Thanks,
Cathy

"Elkar" wrote:

Take a look at the SUBTOTAL function. It can be set to
include/exclude
hidden rows.

=SUBTOTAL(109,A1:A100)

This would total only the visible rows in the range
A1:A100.

HTH,
Elkar


"CLPoulos" wrote:

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




--

Dave Peterson

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 Copy and Paste Several Columns of Data into Excel... ? M_FLEMING Excel Discussion (Misc queries) 3 May 18th 06 04:35 PM
Can I add more columns in Excel past column IV Aaron Oxford Excel Discussion (Misc queries) 0 April 24th 06 06:01 AM
How do I wrap Excel columns in a printout? R2 Excel Discussion (Misc queries) 1 April 1st 06 09:47 AM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 3 February 12th 05 02:04 AM
Columns in Excel will not allow user to click in them Kim Excel Discussion (Misc queries) 1 December 28th 04 06:37 PM


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

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

About Us

"It's about Microsoft Excel"