+ Reply to Thread
Results 1 to 5 of 5

Sum column based on date range

  1. #1
    Registered User
    Join Date
    06-21-2017
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft 365 (Excel Version 2308 Build 16.0.16731.20542)
    Posts
    3

    Sum column based on date range

    Hi

    I'm looking for a formula in each of the yellow cells that sums the values in column E if the date above the highlighted cell fits into the range in that row.

    i.e

    Under 16/03/22, it would sum 3+8
    Under 17/03/22, it would sum 3+4+8

    I have found very similar examples but not quite the same and I have been unable to adapt.

    Thanks for any help
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,984

    Re: Sum column based on date range

    Maybe like this:

    =SUMIFS($E$5:$E$10,$C$5:$C$10,"<="&A$14,$D$5:$D$10,">="&A$14)

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Sum column based on date range

    Solution:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-21-2017
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft 365 (Excel Version 2308 Build 16.0.16731.20542)
    Posts
    3

    Re: Sum column based on date range

    Thank you both, these both work brilliantly.

    My mind better understands the first one, though I do need to learn how to use array formulas. Nonethless I managed to adapt both to my actual spreadsheet.

    Another question - is it possible with either formula to easily ignore hidden (filtered) rows, or am I best adapting the sumifs formula with another condition?

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Sum column based on date range

    SUMPRODUCT can deal with hidden rows, in the file attached I hided the last row.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] SumProduct based on date range sheet qry column C, based on qry column E >0
    By RHISM in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-04-2020, 12:30 PM
  2. Replies: 1
    Last Post: 04-12-2019, 08:15 PM
  3. [SOLVED] COUNTIF values in a column based on date range in another column
    By RichPee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2018, 11:48 AM
  4. Sum multiple cells in one column based on date range in another column
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2017, 09:19 AM
  5. Populating a new column with a date based on a date range
    By rude314 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-20-2016, 05:02 PM
  6. Replies: 13
    Last Post: 10-21-2014, 03:29 AM
  7. filtering date column based on the range
    By kmksprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2012, 05:04 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