+ Reply to Thread
Results 1 to 9 of 9

Exclude cells in SUM if they are hidden?

Hybrid View

  1. #1
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Exclude cells in SUM if they are hidden?

    Ah, those are in 'columns' not rows.

    Subtotal won't work. I actually can't imagine any formula that would.

    Is there anything common about which cells should be included?

    You said you hide them with VBA, can you show that code?
    What is the criteria that is used to hide/unhide a column?
    That can likely be used in a sumif formula.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Exclude cells in SUM if they are hidden?

    Quote Originally Posted by Jonmo1 View Post
    I actually can't imagine any formula that would.
    It's a real kludge...

    Using helper cells...

    =CELL("width",A1)

    Then...

    =SUMIF(Helper Cells,">0",Sum Range)

    However, hiding cells does not trigger a calculation. Maybe they can put in a calculate event after they hide the cells.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sumifs exclude cells that are hidden with data filter
    By rhyan66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2013, 10:16 AM
  2. PivotTable Exclude hidden rows
    By Mambaout626 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-03-2013, 12:32 AM
  3. Exclude Hidden Cells
    By snydercutie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2012, 03:21 AM
  4. COUNTIF function to exclude hidden cells
    By penfold1992 in forum Excel General
    Replies: 8
    Last Post: 08-15-2012, 02:01 PM
  5. Exclude Rows that are hidden from SUM
    By markdc01 in forum Excel General
    Replies: 8
    Last Post: 01-21-2007, 05:12 PM

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