Consulting

Results 1 to 7 of 7

Thread: Solved: sum visible rows only

  1. #1
    VBAX Mentor jammer6_9's Avatar
    Joined
    Apr 2007
    Location
    Saudi Arabia
    Posts
    318
    Location

    Solved: sum visible rows only

    How can I sum visble rows then exclude hidden rows in my calculation.
    T-ogether
    E-veryone
    A-chieves
    M-ore


    One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    If the rows are hidden by a filter, you can use the Subtotal function. Otherwise you would need a User Defined Function.
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    In Excel 2003, extra functon nums were introduced, so you can use

    =SUBTOTAL(109,rng)

    to exclude rows hidden manually.
    Last edited by mdmackillop; 09-18-2007 at 01:15 AM. Reason: Edited to correct formula as Post #7
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    Good to know - I knew there were additional ones in 2007, but did not know about 2003. Thanks.
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    VBAX Mentor jammer6_9's Avatar
    Joined
    Apr 2007
    Location
    Saudi Arabia
    Posts
    318
    Location
    Whats that 10,9 used for?

    Quote Originally Posted by xld
    In Excel 2003, extra functon nums were introduced, so you can use

    =SUBTOTAL(10,9,rng)

    to exclude rows hidden manually.
    T-ogether
    E-veryone
    A-chieves
    M-ore


    One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.

  6. #6
    VBAX Mentor jammer6_9's Avatar
    Joined
    Apr 2007
    Location
    Saudi Arabia
    Posts
    318
    Location
    Sorry I got it... Reading on the Help menu clears me out. Thanks for the Idea or formula...
    T-ogether
    E-veryone
    A-chieves
    M-ore


    One who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever.

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It was my error, 10,9 should have been 109, the function num to SUM excluding hidden rows.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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