+ Reply to Thread
Results 1 to 4 of 4

Date Range Check Formula

  1. #1
    Registered User
    Join Date
    09-15-2021
    Location
    Banbury, UK
    MS-Off Ver
    MacOS Microsoft 365 Business
    Posts
    7

    Date Range Check Formula

    Hi - looking for some help...

    I have a need to compare two date ranges to see if any of the dates in one range fall within the other range.

    I have attached an example sheet to show what my desired outcome is.

    Column E should check if any of the dates between the range in column A and Column B fall in the date range of Column C and Column D. Column E should return Yes if they do and No if they do not.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Date Range Check Formula

    Try this in E2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    09-15-2021
    Location
    Banbury, UK
    MS-Off Ver
    MacOS Microsoft 365 Business
    Posts
    7

    Re: Date Range Check Formula

    Thanks for that - it works :-)

    One anomaly that I've noticed is that if cells A,B,C,D are all blank then cell E returns a "Yes" - ideally, I'd like Cell E to be either Blank or return a "No"...

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Date Range Check Formula

    Well that would just be wrapping an IF like this maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That will return a blank string "" if all four cells A2:D2 are blank.

    Note there's other ways to get errors here too, a blank will be assessed as Jan 0th, 1900 basically (or Dec 31 1899 I suppose), so think about how that would interact with a one-blank situation or similar. And there's no handling for what would implicitly be nonsense data like end date being before start date, so there's a bunch more tests you might want to string into an AND on that first IF test.

+ 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. Formula to check date range
    By azsktl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-29-2021, 03:08 PM
  2. [SOLVED] Formula to Check Date Range
    By Stadler in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2021, 06:24 AM
  3. Replies: 7
    Last Post: 07-14-2017, 12:04 PM
  4. [SOLVED] Need help creating a formula to check a date range
    By bbeards2 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2015, 11:43 AM
  5. [SOLVED] Formula to check date range and then do calculation
    By ps65 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2014, 07:54 PM
  6. excel formula help to get date from range as per check criteria
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2013, 06:03 AM
  7. conditional formatting formula to check frequency of occurence in date range?
    By seanblanton in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-27-2013, 05:50 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