Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
doco
 
Posts: n/a
Default using SUBTOTAL() on rows that have been hidden

Formulas like SUBTOTAL(1,A2:A25) or a more complex cousin like
{=MEDIAN(IF(SUBTOTAL(3,OFFSET($U$2:$U$30,ROW($U$2: $U$30)-MIN(ROW($U$2:$U$30)),0,1)),$U$2:$U$30))}
work really great if one is using AutoFilter.

However I noticed that if one merely needs to 'hide' a single row by using
Format | Row | Hide the function does not do what it should or what is
expected; that is to calculate only visible rows.

Is this a bug or do I need something else?

doco


  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

use 101 instead of 1 to ignore hidden values
=subtotal(101,a2:a25)

"doco" wrote in message
...
Formulas like SUBTOTAL(1,A2:A25) or a more complex cousin like
{=MEDIAN(IF(SUBTOTAL(3,OFFSET($U$2:$U$30,ROW($U$2: $U$30)-MIN(ROW($U$2:$U$30)),0,1)),$U$2:$U$30))}
work really great if one is using AutoFilter.

However I noticed that if one merely needs to 'hide' a single row by using
Format | Row | Hide the function does not do what it should or what is
expected; that is to calculate only visible rows.

Is this a bug or do I need something else?

doco



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

This additional feature of =subtotal() was added in xl2003.



N Harkawat wrote:

use 101 instead of 1 to ignore hidden values
=subtotal(101,a2:a25)

"doco" wrote in message
...
Formulas like SUBTOTAL(1,A2:A25) or a more complex cousin like
{=MEDIAN(IF(SUBTOTAL(3,OFFSET($U$2:$U$30,ROW($U$2: $U$30)-MIN(ROW($U$2:$U$30)),0,1)),$U$2:$U$30))}
work really great if one is using AutoFilter.

However I noticed that if one merely needs to 'hide' a single row by using
Format | Row | Hide the function does not do what it should or what is
expected; that is to calculate only visible rows.

Is this a bug or do I need something else?

doco


--

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
change excel row height without showing hidden rows LL Excel Worksheet Functions 1 April 15th 05 06:24 PM
Did I stump everyone? Counter that ignores hidden rows TechMGR Excel Discussion (Misc queries) 2 April 5th 05 08:45 PM
hidden rows & columns slow file open Simon Shaw Excel Discussion (Misc queries) 0 April 5th 05 12:21 AM
Ignore Hidden Rows in Sum Function? Jugglertwo Excel Discussion (Misc queries) 3 February 10th 05 01:00 AM
Can't See Rows (not hidden) Chris Excel Discussion (Misc queries) 1 January 7th 05 02:51 PM


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

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"