+ Reply to Thread
Results 1 to 6 of 6

filter date bounded between two ranges

  1. #1
    Forum Contributor
    Join Date
    07-08-2022
    Location
    Baghdad
    MS-Off Ver
    365
    Posts
    145

    filter date bounded between two ranges

    I am using google sheets

    How to use the filter function to filter date bounded between two ranges and sum horizontally these values, see attached file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: filter date bounded between two ranges

    Formulas
    Date
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

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

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: filter date bounded between two ranges

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: filter date bounded between two ranges

    Power Query
    start date
    Please Login or Register  to view this content.
    result
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-20-2020
    Location
    Gridley, ILL
    MS-Off Ver
    2021
    Posts
    28

    Re: filter date bounded between two ranges

    Try =SUMPRODUCT((B7:J7>=D6)*(B7:J7<=G6)*B8:J12). This will sum all cells within the date range.
    To sum each row individually use =SUMPRODUCT((B7:J7>=D6)*(B7:J7<=G6)*B8:B12)

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: filter date bounded between two ranges

    To get the array of filtered values:

    =TRANSPOSE(QUERY({TRANSPOSE(A7:H12)},"select * where Col1 > date '"&text(B6-1,"yyyy-MM-dd")&"' and Col1 < date '"&text(E6+1,"yyyy-MM-dd")&"'",0))

    To get the sum of each row:

    ={"sum";BYROW(M8:R12,LAMBDA(rowvals,SUM(rowvals)))}

    Sample file linked here:

    https://docs.google.com/spreadsheets...gid=2100307022
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

+ 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. How To Create Multi-Select Bounded Picklist
    By Sintax8 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2019, 01:38 AM
  2. How to create date RANGES in pivot table report filter?
    By TylerB2 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-28-2015, 03:34 PM
  3. Average of a set of Bounded Values
    By ham1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2012, 03:44 AM
  4. Copying data bounded buy particular values
    By Alexander_Golinsky in forum Excel General
    Replies: 2
    Last Post: 07-25-2012, 07:19 AM
  5. Replies: 2
    Last Post: 03-23-2012, 07:20 AM
  6. Filter Date Ranges
    By njexpress9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2009, 01:17 PM
  7. [SOLVED] find a selection bounded by the color gray
    By Janis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2006, 05:35 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