+ Reply to Thread
Results 1 to 5 of 5

SUMIF - how to include only filter range?

  1. #1
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    SUMIF - how to include only filter range?

    Hi,

    =SUMIF(J14:J312,"*a+*",F14:F512)

    Using this formula i'm fetching 'values' from column F based on 'text input' in column J

    but when I apply date filter it still shows the same 'total sum' value as without it.

    Can some please update this formula so that it doesn't take into account the values/rows which are out of filter range.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: SUMIF - how to include only filter range?

    The two ranges need to be of the same size.

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,963

    Re: SUMIF - how to include only filter range?

    Try incorporating a Subtotal

    https://www.excelforum.com/excel-for...ered-list.html

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: SUMIF - how to include only filter range?

    Something like:

    =SUMPRODUCT((ISNUMBER(SEARCH("a+",J14:J512)))*(SUBTOTAL(2,OFFSET(F14:F512,ROW(F14:F512)-MIN(ROW(F14:F512)),,1)))*F14:F512)
    Rory

  5. #5
    Forum Contributor
    Join Date
    07-15-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    116

    Re: SUMIF - how to include only filter range?

    Quote Originally Posted by rorya View Post
    Something like:

    =SUMPRODUCT((ISNUMBER(SEARCH("a+",J14:J512)))*(SUBTOTAL(2,OFFSET(F14:F512,ROW(F14:F512)-MIN(ROW(F14:F512)),,1)))*F14:F512)
    You simply nailed it Sir. Thank you so much for your time. Regards

+ 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. Refine SUMIF to include items within a date range
    By rviners in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-04-2020, 11:45 AM
  2. [SOLVED] How to include a logic statement with a sumif function?
    By dbl_dbl in forum Excel General
    Replies: 3
    Last Post: 04-10-2019, 02:37 PM
  3. [SOLVED] Sumif to include start date
    By lejanco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2014, 10:50 AM
  4. [SOLVED] Sumif issue how to include two columns in a different sheet.
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2013, 11:34 AM
  5. How do I include a SUMIF in a IF(AND statement?
    By johnw993 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2012, 01:12 AM
  6. SUMIF to include several conditions?
    By tangcla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2008, 08:39 PM
  7. Include Subtotal in SumIf
    By Bonobo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2005, 08:05 AM

Tags for this Thread

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