+ Reply to Thread
Results 1 to 6 of 6

Filtering between date range

  1. #1
    Registered User
    Join Date
    03-22-2018
    Location
    Taunton, England
    MS-Off Ver
    10
    Posts
    35

    Filtering between date range

    Hi there

    I am having a real problem with a workbook that updates from a xlsx file and then I need to search for entries between a date range. The workbook works if I manually type the data in in sheet 1 (Optimy) and updates in sheet 2 (Filtering). However, when I refresh the data nothing happens. The formulae have grown to a point that I think I've created a monster. Any ideas to help solve this?
    Attached Files Attached Files

  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: Filtering between date range

    Yes, a monster indeed.

    OK - talk us through exactly what your monster formula is doing - step-by-step. Nobody is going to back engineer it to find out for themselves, so let us have that information first and we can take it from there.
    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
    Registered User
    Join Date
    03-22-2018
    Location
    Taunton, England
    MS-Off Ver
    10
    Posts
    35

    Re: Filtering between date range

    The formula is looking for dates in a date range. If a date is found, it (should) give a value of 1, and only theses values will be visible in the Filtering sheet (if filtering is set to 1). There are twenty five cells per row where a date can occur. The data source is another spreadsheet that is output from our database (as an xlsx file). This updates the Optimy sheet. However, when the workbook is refreshed with the data the Filtering sheet does not work. If I type the data in to the Optimy sheet manually the Filtering sheet works!

  4. #4
    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: Filtering between date range

    No, sorry - that's not quite what I meant!

    Talk us through - step-by-step - what the formula is looking at and returning.

  5. #5
    Registered User
    Join Date
    03-22-2018
    Location
    Taunton, England
    MS-Off Ver
    10
    Posts
    35

    Re: Filtering between date range

    Sorry.

    If cell C2 in Optimy sheet has a date that is within the date range set in the Filtering sheet at C1 and E1 (etc) then cell A4 in Filtering will have a value of 1 and the part of the row where this is true is revealed. This works when data entered manually in Optimy sheet.

    However, when workbook is refreshed from external source, the data refreshes in Optimy sheet but Filtering sheet does not - all cells in Column A return 0.

    That' the best I can explain.

    Tony

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

    Re: Filtering between date range

    It seems that the values in the 'date' columns are text strings. Example scroll to column EQ and select EQ1. Select the drop down in the 'Number' pane and notice that Number, Currency, Accounting ... all show the same thing. If you select EQ1:EQ24 > Data (tab) > Text to Columns > Next > Next > Date > DMY > Finish, those text strings become dates and ones show up in column A on the Filtering sheet. If the dates are being imported as text then it may be that one of the VBA/ Macro contributors (I am VBA illiterate) could help.
    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. [SOLVED] Filtering a Pivot by Date Range via VBA
    By Excelmad101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2016, 09:39 PM
  2. [SOLVED] Filtering on date range, but capturing items that 'straddle' the range
    By Kite3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2013, 05:38 AM
  3. [SOLVED] Filtering a date range within a date range?
    By Kite3 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-29-2013, 12:03 AM
  4. 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
  5. Replies: 2
    Last Post: 09-26-2011, 04:19 AM
  6. filtering date range in excel
    By martinz in forum Excel General
    Replies: 5
    Last Post: 10-10-2009, 12:26 AM
  7. [SOLVED] Filtering a Date Range
    By Leslie P via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-11-2005, 12:05 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