+ Reply to Thread
Results 1 to 6 of 6

Identifying hidden rows to exclude from sumifs

  1. #1
    Registered User
    Join Date
    10-24-2017
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2010
    Posts
    25

    Identifying hidden rows to exclude from sumifs

    I have a small worksheet that I gather information from using sumifs. The worksheet has 100 rows and 20 columns.
    I want to exclude hidden rows from my calculations, the rows that are hidden will vary over time.

    I would like to determine a way to identify and mark hidden rows, so that I can I can use the mark as a criteria to exclude those rows in my sumifs.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Identifying hidden rows to exclude from sumifs

    Hi Cbird- You could add a (hidden?) helper column with this formula in row 2 and copied down. It shows 1 if the row is visible, 0 if it's hidden (or A is blank).:
    Please Login or Register  to view this content.
    Now just use the helper as an additional criteria for your COUNTIFS. For example, assuming Z is the helper column, this counts VISIBLE instances of "N" in column B:
    Please Login or Register  to view this content.
    And here's a link to a similar thread, with other solutions. https://www.excelforum.com/excel-for...ml#post4788301
    Last edited by leelnich; 11-28-2017 at 05:22 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    10-24-2017
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Identifying hidden rows to exclude from sumifs

    Thanks that makes sense.
    Any thoughts on why =SUBTOTAL(103,A2) in my worksheet returns a 0 instead of 1 on a visible row?

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Identifying hidden rows to exclude from sumifs

    Is there a value in column A for that row? SUBTOTAL(103..) mimics COUNTA, so it returns 0 if A is blank. Also, make sure calculation is set to automatic.
    Last edited by leelnich; 11-28-2017 at 11:50 PM.

  5. #5
    Registered User
    Join Date
    10-24-2017
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Identifying hidden rows to exclude from sumifs

    Thank you!
    That was my issue.
    Works perfectly now.

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Identifying hidden rows to exclude from sumifs

    Excellent, glad I could help.

+ 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 to exclude a value
    By Motox in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2016, 12:51 AM
  2. SUMIFS and exclude Duplicates
    By Mark929 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2015, 01:06 PM
  3. Exclude cells in SUM if they are hidden?
    By horsefish01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-02-2015, 07:33 PM
  4. 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
  5. PivotTable Exclude hidden rows
    By Mambaout626 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-03-2013, 12:32 AM
  6. How to exclude hidden rows while running a code?
    By heena.singh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-19-2013, 06:25 AM
  7. 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