+ Reply to Thread
Results 1 to 18 of 18

Filter with date range

  1. #1
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Filter with date range

    I'm continuing working with the Filter function. This time, I am including the AND (*) logic to the filter. I want to filter out based on date. My initial range is a span over two years. I want to capture one month at a time. This is my formula but I'm getting a #Calc error. I was able to have it work once and then it fizzled on me.

    =FILTER('Service Tech Summary'!$U$29:$U$38,('Service Tech Summary'!$C$29:$C$38=C3)*('Service Tech Summary'!$D$2>=DATE(2020,11,1))*('Service Tech Summary'!$D$3<=DATE(2020,11,30)))
    Attached Images Attached Images
    Last edited by rme01; 08-09-2022 at 01:58 PM.

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

    Re: Filter with date range

    #CALC! means that there is no data that matches all 3 criteria.
    If you think there should be, then can you upload a sample workbook showing the problem.

  3. #3
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    I would be I'm under an NDA agreement and it is sensitive information.

    The date range is 1/1/1990 thru today. I'm separating the information by month therefore there is information for each month. Currently, I'm changing the date range and copying and pasting values onto another worksheet. Instead of copying and pasting values, I would like to use the filter function and have it be based for each month therefore eliminating the need to change date range and providing accurate information.

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

    Re: Filter with date range

    Missed it originally, you are only checking D2 & D3 for the date, should it be D29:D38?
    Also if you have data from 1900 to the present, why are you only filtering 10 rows?

  5. #5
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    D2 is the beginning (1/1/2020)
    D3 is end date (1/31/2020)
    U29:U38 is my data
    C29:C38 is my list of people
    C3 is my target person for that row.

  6. #6
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    My data is broken down into different categories.

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

    Re: Filter with date range

    D2 is the beginning (1/1/2020)
    D3 is end date (1/31/2020)
    that explains why you get #CALC!, those dates are out side your criteria range.

  8. #8
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    If I set my begin date at 1/1/2019 and the end date 12/31/2025. Apply the formula that I have above, I still get the #Calc error.

  9. #9
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    If I set my begin date at 1/1/2019 (D2) and the end date 12/31/2025 (D3).

  10. #10
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    I want to capture one month at a time within that timeframe.

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

    Re: Filter with date range

    As I have no idea what your data looks like (& it sounds as though it is not in a normal layout) there is nothing more I can do to help.

  12. #12
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    I just uploaded a small sample. I hope this clears up any confusion
    Attached Images Attached Images

  13. #13
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    Again, ideally, D2 would be the initial date of 1/1/1999 and D3 would be a future date.

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

    Re: Filter with date range

    I hope this clears up any confusion
    Fraid not, as there is nothing of any use in those images.
    If you don't have the date on each row of data, how do you know which date it for?
    Also with data from 1900 to today, I would expect you to have 10 of thousands of rows, not just 10.

  15. #15
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    The data in each cell contain a Countif formula which is referenced to the dates (d2 & d3). For example,

    =COUNTIFS('Data from Google Version'!D:D,$C8,'Data from Google Version'!E:E,"Maintenance",'Data from Google Version'!B:B,">="&$D$2,'Data from Google Version'!B:B,"<="&$D$3)

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

    Re: Filter with date range

    That does not help & makes even less sense.
    Without being able to see your data & understand exactly what you are trying to do, then I cannot help as nothing you have said makes any sense to me.

  17. #17
    Registered User
    Join Date
    08-02-2022
    Location
    Minnesota USA
    MS-Off Ver
    365
    Posts
    11

    Re: Filter with date range

    Worksheet one...
    Includes information for a large timeframe such as 1/1/1997 thru 7/31/2022.
    Information includes what I have included in post 10. with the countifs formula

    Worksheet two...
    I want to filter designated cells from worksheet one and include specific dates on a month basis. For example, July 1 to July 31, 2021. Instead of copying/pasting cell values, I would like to have the filter formula for each month.

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,588

    Re: Filter with date range

    As Fluff13 has said it is hard to offer help without at least having an Excel file with some fictional data with which to work.
    That said, looking at the formula in post #1, I feel that the culprit may be the segment: 'Service Tech Summary'!$C$29:$C$38=C3
    Assuming Aaron W. is in cell B3, I imagine that the segment should read: 'Service Tech Summary'!$C$29:$C$38=$B3.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 1
    Last Post: 02-17-2022, 12:15 AM
  2. [SOLVED] Filter Date Range
    By cyliyu in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-10-2017, 05:11 AM
  3. Advanced filter by date range, international date format problem
    By Senator685 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:16 AM
  4. Replies: 4
    Last Post: 10-10-2012, 03:38 PM
  5. [SOLVED] Date Filter based on Cell Input - single date or range of dates
    By babaloo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2012, 10:32 AM
  6. Filter several pivot tables by one programmed date range filter in Excel 2003
    By olewka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2011, 11:49 AM
  7. Filter By Date Range
    By AcesUp in forum Excel General
    Replies: 3
    Last Post: 08-23-2005, 04:13 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