Using Numbers to compare date ranges

Hey everyone,


I am looking for some help in getting numbers to compare date ranges.


I have a list of people with certain time sensitive rules and I would like the sheet to tell me if the date range for said rule overlaps with a particular week of the quarter.


The following screenshot demonstrates the kind of thing I am hoping to make work.

So at the moment I am looking at the week of the 16th to the 22nd of October (Week X). I would like the "Ongoing?" column (E) to simply say "YES" or "NO" if any date between the "Start Date" (C) and "End Date" (D) falls within Week X.


I believe I have been able to find a way of verifying the individual start and end dates relative to Week X with a combination of IF & AND formulas with inequalities and conditional highlighting. This serves as a more specific reminder to ensure the rule has been added or removed as the weeks are being worked on. Finding a way for the document to tell me whether the rule is ongoing or not has proved more difficult and researching hasn't lead to any fruitful solutions other than using Excel.


If there are any ideas out there I'd be all ears, even if it means modifying other parts of the document or changing existing formulas. Please also note that all dates in the screenshot above are DD/MM/YY.


Thanks heaps in advance for any help or suggestions!

Posted on Sep 23, 2021 7:31 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 24, 2021 10:45 AM

Does this do what you need?


The shorter formula shown below the table is entered in E2, and filled down from there.

Note the result in E6, caused by the lack of dates in this row of columns S and D.


The part added to the longer formula (including the second closing ) at the end) places a null string in its cell and prevents the original IF from doing it's calculation until both dates have been entered in columns C and D.


Regards,

Barry

2 replies
Question marked as Top-ranking reply

Sep 24, 2021 10:45 AM in response to syhr1

Does this do what you need?


The shorter formula shown below the table is entered in E2, and filled down from there.

Note the result in E6, caused by the lack of dates in this row of columns S and D.


The part added to the longer formula (including the second closing ) at the end) places a null string in its cell and prevents the original IF from doing it's calculation until both dates have been entered in columns C and D.


Regards,

Barry

Sep 26, 2021 4:08 PM in response to Barry

Thank you so much for your reply and your help. Using input or output text strings was something I didn't consider at first, and I think this has lead to something that will work quite well!


This is where I'm at at the moment. I do think using SUMPRODUCT formulas with dates like Excel is able to would be even better, but this definitely does the job!



Thank you again for your help!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using Numbers to compare date ranges

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.