+ Reply to Thread
Results 1 to 7 of 7

SUMIF and hidden cells

  1. #1
    Forum Contributor
    Join Date
    11-03-2014
    Location
    Belgrade
    MS-Off Ver
    2010
    Posts
    348

    Question SUMIF and hidden cells

    Hi folks,

    Briefly, without example.
    In cell C2 I have drop down menu: All, Top3, Top5 and Top10.
    The data looks like (starts from row 7):

    Please Login or Register  to view this content.

    I have SUMIF formula =SUMIF($G$7:$G$155,"??9*",H7:H155) but the problem is when I filter data in C2 e.g. Top10. SUMIF doesn't work for filtered data. I am trying with SUMPRODUCT but still can't find the appropriate formula.

    Any solution for this?

    Thanks!

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: SUMIF and hidden cells

    Finally Go through attached Workbook
    Attached Files Attached Files
    Don`t care, take care...

    Regards,
    Mangesh

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

    Re: SUMIF and hidden cells

    Maybe this...

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(H7,ROW(H7:H155)-ROW(H7),0)),--ISNUMBER(SEARCH("??9",G7:G155)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: SUMIF and hidden cells

    Quote Originally Posted by mangesh.mehendale View Post
    Finally Go through attached Workbook
    Instead of hiding your suggestion in a file post it directly in the reply where everyone can see it.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: SUMIF and hidden cells

    Enter a subtotal formula in I7 and fill down

    =SUBTOTAL(9,H7)+0

    Then use the subtotal column in your sumif formula.

    =SUMIF($G$7:$G$155,"??9*",I7:I155)

  6. #6
    Forum Contributor
    Join Date
    11-03-2014
    Location
    Belgrade
    MS-Off Ver
    2010
    Posts
    348

    Re: SUMIF and hidden cells

    Quote Originally Posted by Tony Valko View Post
    Maybe this...

    =SUMPRODUCT(SUBTOTAL(9,OFFSET(H7,ROW(H7:H155)-ROW(H7),0)),--ISNUMBER(SEARCH("??9",G7:G155)))
    That's it! Works. I just replaced 9 with 109!

    Thank you very much!
    Last edited by toci; 08-30-2016 at 07:44 AM.

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

    Re: SUMIF and hidden cells

    You're welcome. Thanks for the feedback!

+ 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. Using SUMIF with Hidden Rows
    By MS3217 in forum Excel General
    Replies: 5
    Last Post: 05-30-2014, 12:27 AM
  2. [SOLVED] Format all cells in all sheets to Protection Hidden on visible and hidden tabs
    By DeRo22 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-28-2014, 03:17 PM
  3. Replies: 0
    Last Post: 01-15-2014, 05:17 PM
  4. how do i create a SUMIF to ignore cells hidden with autofilter
    By JONNY981 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-06-2009, 10:14 AM
  5. SUMIF Excluding hidden rows
    By TREMA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2008, 08:54 PM
  6. copying hidden cells and paste to non hidden cells on same sheet
    By 2newguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2007, 02:39 PM
  7. choose Locked & Hidden :Hidden Cells
    By Khalil Handal in forum Excel General
    Replies: 2
    Last Post: 12-14-2005, 04:50 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