+ Reply to Thread
Results 1 to 9 of 9

SUMIF with different criteria for only visble cells

  1. #1
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    SUMIF with different criteria for only visble cells

    Hi,

    I have this formula : =SUMIFS(F5:F999,H5:H999,"N") but I would like to apply this formula for only visible cells ( like the subtotal formula =SUBTOTAL(9,F5:F999))

    Thank you for your help,

    Daniel

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,208

    Re: SUMIF with different criteria for only visble cells

    See here

    https://www.excelforum.com/excel-for...ble-cells.html

    or

    https://www.excelanytime.com/excel/i...=77&Itemid=473

    there are are other examples if you "Goggle" [SUMIF for visible cells]
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: SUMIF with different criteria for only visble cells

    Hi John,

    Thank you for your answer.
    I checked the 2 links but I haven't found the solution.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2502 (Windows 11 Home 24H2 64-bit)
    Posts
    89,500

    Re: SUMIF with different criteria for only visble cells

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: SUMIF with different criteria for only visble cells

    Hi Aligw,

    Thank you for your suggestion but it's a generic question:
    I would like to know how to have a "sumifs" for hidden rows.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,208

    Re: SUMIF with different criteria for only visble cells

    You have to use the SUMPRODUCT approach with SUBTOTAL

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2502 (Windows 11 Home 24H2 64-bit)
    Posts
    89,500

    Re: SUMIF with different criteria for only visble cells

    I would like to know how to have a "sumifs" for hidden rows.
    The second link you were given tells you how to do it. Look at this bit:

    ll D7 formula: SUMIF to INCLUDE hidden cells / rows: use SUMIF to SUM column A where column B = "A".
    Last edited by AliGW; 05-11-2022 at 06:16 AM.

  8. #8
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: SUMIF with different criteria for only visble cells

    Quote Originally Posted by AliGW View Post
    The second link you were given tells you how to do it. Look at this bit:
    Thank you for your help

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2502 (Windows 11 Home 24H2 64-bit)
    Posts
    89,500

    Re: SUMIF with different criteria for only visble cells

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered 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. [SOLVED] SUMIF: criteria in not consecutive (adjacent) cells
    By Giulio Severini in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2020, 08:35 AM
  2. [SOLVED] Visble If Condition
    By Derrick T. Davidson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2015, 03:08 AM
  3. SUMIF with Criteria as a range of cells.
    By Jefplusf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2014, 08:15 PM
  4. Using AutoFill on Visble Cells with Custom List
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2012, 02:29 PM
  5. SUMIF?? Adding cells based on criteria
    By dawnmau in forum Excel General
    Replies: 2
    Last Post: 03-19-2010, 12:09 PM
  6. Replies: 3
    Last Post: 06-27-2007, 01:22 PM
  7. copy visble cells at the subtotal level
    By jfkosu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2005, 10:25 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