Please help calculate if date falls within a range in Excel?

zacharie101

New Member
Joined
Sep 13, 2015
Messages
2
<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl63 {font-size:11.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:"mm\/dd\/yy"; text-align:center; border:.5pt solid silver; white-space:normal;}.xl64 {font-size:11.0pt; font-weight:700; font-family:Calibri, sans-serif; mso-font-charset:0; text-align:center; border:.5pt solid silver; white-space:normal;}.xl65 {font-size:11.0pt; font-weight:700; font-family:Calibri, sans-serif; mso-font-charset:0; text-align:center; border-top:none; border-right:.5pt solid silver; border-bottom:none; border-left:.5pt solid silver; white-space:normal;}.xl66 {font-size:11.0pt; font-weight:700; font-family:Calibri, sans-serif; mso-font-charset:0; text-align:center; border:.5pt solid silver; background:#E2EFDA; mso-pattern:black none; white-space:normal;}.xl67 {font-size:11.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:"mm\/dd\/yy"; text-align:center; border:.5pt solid silver; background:#E2EFDA; mso-pattern:black none; white-space:normal;}.xl68 {font-size:11.0pt; font-family:Calibri; mso-generic-font-family:auto; mso-font-charset:0; text-align:center; border:.5pt solid black; background:#00B0F0; mso-pattern:black none;}--></style>
NameFrom DateTo Date
A07/30/1808/23/18
A06/21/1807/30/18
B08/01/1808/23/18
B06/30/1808/01/18
C06/25/1807/23/18
C07/23/1808/21/18
C08/09/1808/21/18
D06/30/1808/09/18
E08/02/1808/21/18
E06/30/1808/02/18
F06/11/1806/11/18
F08/08/1808/21/18
F08/08/1808/21/18

<!--StartFragment--> <colgroup><col width="87" span="3" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>


If the name of the cell matches, I want to calculate if the From and To date falls within range? Can you please help? I'm trying to make sure no date overlaps

For example, for the name "A" I want to check to see if the 2nd "A" From and To dates 6/21/18-7/30/18 falls within the dates of 7/30/18-8/23/18
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hello,

In cell D3, you can test following :

Code:
=MAX(MIN(C3,C2)-MAX(B2,B6)+1,0)

HTH
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top