+ Reply to Thread
Results 1 to 4 of 4

filtering date column

  1. #1
    Forum Contributor
    Join Date
    06-14-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    186

    filtering date column

    Does anyone know why when trying to apply a filter to a date column using the "BETWEEN" option where I set is after or equal to =today()-14 and is before or equal to =today() it does not work but soon as I replace the today() with an actual date it works.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: filtering date column

    I'm fairly certain that you can't use formulae like that in the autofilter drop down menu.

    You can of course use an Advanced Filter with a criteria range that contains your 'between' dates
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: filtering date column

    The BETWEEN options (and other filter options) are not formulas, they are constants. You can't use worksheet functions or expressions, only strings.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: filtering date column

    You can not use a formula in the filter criteria boxes. That would require using the advanced filter method.

    https://support.office.com/en-us/art...rs=en-US&ad=US

    You will need the section titled 'Multiple sets of criteria, one column in all sets'

    First criteria

    =">="&(TODAY()-14)

    Second critera

    ="<="&TODAY()

+ 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. Filtering in column with more than one date
    By dabolicious42069 in forum Excel General
    Replies: 9
    Last Post: 06-14-2017, 07:01 PM
  2. [SOLVED] Need help filtering data by filtering based on the last digit of a column/true statement
    By Stephen R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2014, 07:43 AM
  3. 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
  4. Need help filtering a date column
    By Joe Miller in forum Excel General
    Replies: 3
    Last Post: 07-12-2006, 07:51 PM
  5. trouble filtering a list. Why isn't column filtering?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 03:05 PM
  6. [SOLVED] trouble filtering a list. Why isn't column filtering?-number of criteria
    By Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2005, 11:05 AM

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