ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   finding if a date falls between two dates (https://www.excelbanter.com/excel-discussion-misc-queries/220184-finding-if-date-falls-between-two-dates.html)

JeanetteS

finding if a date falls between two dates
 
Hi. I hope there's an answer to this problem:
N column is "Start Date",
O column is "End Date",
I have a named range "holidays" in U3:U9.

I need to find out if any of the "holidays" date fall within my Start Dates
and my End Dates, which vary from row to row.

lolan7

finding if a date falls between two dates
 
sorry that I posted this question 3x; I kept getting a failure to post message.

"JeanetteS" wrote:

Hi. I hope there's an answer to this problem:
N column is "Start Date",
O column is "End Date",
I have a named range "holidays" in U3:U9.

I need to find out if any of the "holidays" date fall within my Start Dates
and my End Dates, which vary from row to row.


joeu2004

finding if a date falls between two dates
 
On Feb 10, 1:15*pm, JeanetteS
wrote:
N column is "Start Date",
O column is "End Date",
I have a named range "holidays" in U3:U9. *
I need to find out if any of the "holidays" date fall within my
Start Dates and my End Dates, which vary from row to row.


SUMPRODUCT((N2<=U3:U9)*(U3:U9<=O2)) returns the number of holidays
between the dates in N2 and O2. The following tells you if at least
one holiday is between those dates:

=if(sumproduct((N2<=U3:U9)*(U3:U9<=O2))=0,"none"," at least one")





All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com