+ Reply to Thread
Results 1 to 8 of 8

Formula to see if Date Ranage contains a date from list

  1. #1
    Registered User
    Join Date
    01-02-2024
    Location
    Hawaii, USA
    MS-Off Ver
    Office 265
    Posts
    2

    Formula to see if Date Ranage contains a date from list

    Hi! I am trying to figure out how to do a formula to see if the date range of two dates contains any of the dates in a separate list of dates. Please see the example data below!! Thanks in advance!!!

    Start Date End Date Range Has a Date from Date list
    2/1/2023 2/5/2023
    1/17/2023 3/14/2023
    4/1/2023 6/13/2023


    Date List
    2/2/23
    5/17/23
    1/17/23
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Formula to see if Date Ranage contains a date from list

    Try this formula in cell C2:

    =IF(COUNTIFS($E$2:$E$5,">="&A2,$E$2:$E$5,"<="&B2),"Yes","No")

    Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formula to see if Date Ranage contains a date from list

    how about
    =COUNTIFS($E$2:$E$5,">="&A2,$E$2:$E$5,"<="&B2)

    that will show a count depending on how many in the list it finds in the range

    so add an IF() if you want to out put a YES or NO

    =IF( COUNTIFS($E$2:$E$5,">="&A2,$E$2:$E$5,"<="&B2) , "Yes", "No")

    as all your dates are included i changed 1
    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.

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

    Re: Formula to see if Date Ranage contains a date from list

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

  5. #5
    Registered User
    Join Date
    01-02-2024
    Location
    Hawaii, USA
    MS-Off Ver
    Office 265
    Posts
    2

    Re: Formula to see if Date Ranage contains a date from list

    this is great!! thanks!!

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formula to see if Date Ranage contains a date from list

    you are welcome

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

    Re: Formula to see if Date Ranage contains a date from list

    Glad to help & thanks for the feedback

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Formula to see if Date Ranage contains a date from list

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Date list to complete date list showing no-event-dates
    By Wimpietje in forum Excel General
    Replies: 8
    Last Post: 08-30-2023, 07:32 AM
  2. Replies: 3
    Last Post: 07-31-2019, 06:07 AM
  3. Replies: 4
    Last Post: 03-21-2018, 09:25 AM
  4. Replies: 7
    Last Post: 02-02-2017, 02:41 PM
  5. Replies: 5
    Last Post: 12-01-2015, 02:36 PM
  6. [SOLVED] Formula to compare date (including month and year) from a listed date to today's date
    By mhewitson15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 05:31 PM
  7. how to extract latest date to a paticular date from diffrent date list
    By rudraalok in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2014, 05:18 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