+ Reply to Thread
Results 1 to 3 of 3

using SUBTOTAL() on rows that have been hidden

  1. #1
    doco
    Guest

    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. #2
    N Harkawat
    Guest

    Re: using SUBTOTAL() on rows that have been hidden

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

    "doco" <[email protected]> wrote in message
    news:%23o%[email protected]...
    > 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. #3
    Dave Peterson
    Guest

    Re: using SUBTOTAL() on rows that have been hidden

    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" <[email protected]> wrote in message
    > news:%23o%[email protected]...
    > > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1