+ Reply to Thread
Results 1 to 6 of 6

FILTER Formula Searching for Variable Date

  1. #1
    Registered User
    Join Date
    05-30-2014
    Posts
    7

    FILTER Formula Searching for Variable Date

    I have an Excel spreadsheet with a list of dates and items. I'm working on a formula that will provide a list of items that match the current date. It works if I have an exact match (ex. 2/4/2023) but I'm trying to get the formula to list items that have a similar month and day (ex. 2/4/2021, 2/4/2023).

    Here's the formula but I can't figure out how to change the search to find multiple entries.
    =FILTER(A2:A30,B2:B30=C1)

    Any suggestions would be appreciated. Best regards
    - Maurice
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: FILTER Formula Searching for Variable Date

    if an exact match with day and month
    =FILTER(B2:B33,(MONTH(A2:A33)=MONTH(C1))*(DAY(A2:A33)=DAY(C1)))

    see Column I
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

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

    Re: FILTER Formula Searching for Variable Date

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

  4. #4
    Registered User
    Join Date
    05-30-2014
    Posts
    7

    Re: FILTER Formula Searching for Variable Date

    It works perfectly! Thank you!

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: FILTER Formula Searching for Variable Date

    you are welcome

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

    Re: FILTER Formula Searching for Variable Date

    Not sure who you're talking to, but glad to help & thanks for the feedback.

+ 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: 16
    Last Post: 01-05-2022, 06:24 AM
  2. [SOLVED] Formula to sum variable number of values in a column variable by date lookup ...
    By SNP529 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-18-2020, 06:54 AM
  3. Excel table filter by date variable through data picker date variable
    By SamanH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2018, 01:09 PM
  4. [SOLVED] correctly 'wording' a for/next loop using a variable counter and variable filter
    By DBoyd121 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2016, 06:13 PM
  5. Macro to filter a pivot whilst looping through filter criteria in a variable list.
    By Alistairm88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2015, 04:25 AM
  6. VBA Define Date Variable as Filter Criteria
    By KostasK8 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2014, 03:50 PM
  7. Replies: 1
    Last Post: 10-27-2012, 02:54 AM

Tags for this Thread

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