Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Todd
 
Posts: n/a
Default a way sum only columns not hidden?

I have a worksheet with many hidden columns. The columns I hide keep
changing. Is there a way to have column totals adjust to sum only the
columns showing?

TIA

Todd
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
only possible with VBA.
SUBTOTAL would work if you would hide rows with a filter

--
Regards
Frank Kabel
Frankfurt, Germany

"Todd" schrieb im Newsbeitrag
...
I have a worksheet with many hidden columns. The columns I hide keep
changing. Is there a way to have column totals adjust to sum only

the
columns showing?

TIA

Todd


  #3   Report Post  
KL
 
Posts: n/a
Default

I am sure there are better ways, but if not then you can try this UDF:

Function SumVisible(mySelection As Range)
Application.Volatile
For Each c In mySelection
If c.Rows(c.Row).Hidden = False And _
IsNumeric(c) Then mySum = mySum + c.Value
Next c
SumVisible = mySum
End Function

Regards,
KL

"Todd" wrote in message
...
I have a worksheet with many hidden columns. The columns I hide keep
changing. Is there a way to have column totals adjust to sum only the
columns showing?

TIA

Todd



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

SUBTOTAL in 2003 will work for manually hiiden rows as well

=SUBTOTAL(109,Range)

for hidden rows

=SUBTOTAL(3,Range)

for filtered rows

Regards,

Peo Sjoblom

"Frank Kabel" wrote:

Hi
only possible with VBA.
SUBTOTAL would work if you would hide rows with a filter

--
Regards
Frank Kabel
Frankfurt, Germany

"Todd" schrieb im Newsbeitrag
...
I have a worksheet with many hidden columns. The columns I hide keep
changing. Is there a way to have column totals adjust to sum only

the
columns showing?

TIA

Todd



  #5   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi Peo
agreed but I think the OP asked for hidden columns and for this it
would not work

--
Regards
Frank Kabel
Frankfurt, Germany

"Peo Sjoblom" schrieb im
Newsbeitrag ...
SUBTOTAL in 2003 will work for manually hiiden rows as well

=SUBTOTAL(109,Range)

for hidden rows

=SUBTOTAL(3,Range)

for filtered rows

Regards,

Peo Sjoblom

"Frank Kabel" wrote:

Hi
only possible with VBA.
SUBTOTAL would work if you would hide rows with a filter

--
Regards
Frank Kabel
Frankfurt, Germany

"Todd" schrieb im Newsbeitrag
...
I have a worksheet with many hidden columns. The columns I hide

keep
changing. Is there a way to have column totals adjust to sum

only
the
columns showing?

TIA

Todd




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 do I prevent hidden columns from being revealed by another use archie Excel Discussion (Misc queries) 3 January 14th 05 04:00 AM
Columns in Excel will not allow user to click in them Kim Excel Discussion (Misc queries) 1 December 28th 04 06:37 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM
How can I see column headings of hidden columns in Excel before u. Beachcomber Excel Discussion (Misc queries) 10 December 10th 04 01:35 PM
I can't unhide 3 columns previously hidden Kozul Excel Discussion (Misc queries) 1 December 3rd 04 05:15 AM


All times are GMT +1. The time now is 05:32 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"