MCTampa
Board Regular
- Joined
- Apr 14, 2016
- Messages
- 97
[TABLE="width: 500"]
<tbody>[TR]
[TD]Start
[/TD]
[TD]End
[/TD]
[TD][/TD]
[TD]SD
[/TD]
[TD]ED
[/TD]
[TD]Check
[/TD]
[/TR]
[TR]
[TD]7/20/2019
[/TD]
[TD]7/27/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]False
[/TD]
[/TR]
[TR]
[TD]7/27/2019
[/TD]
[TD]8/3/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]False
[/TD]
[/TR]
[TR]
[TD]8/3/2019
[/TD]
[TD]8/10/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]True
[/TD]
[/TR]
[TR]
[TD]8/10/2019
[/TD]
[TD]8/17/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]True
[/TD]
[/TR]
[TR]
[TD]8/17/2019
[/TD]
[TD]8/24/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]False
[/TD]
[/TR]
</tbody>[/TABLE]
I'm struggling with how to write the following formula in VBA:
=IF(OR((AND(D2>=A2,D2<=B2)),AND(E2>=A2,E2<=B2)),TRUE,FALSE)
This formula evaluates whether or not either the SD or theED falls between the Start Date and the End Date. I do not care which one satisfies thecriteria, I just want to know if one of them does.
I am struggling with the structure in VBA.
Thanks,
Mike
<tbody>[TR]
[TD]Start
[/TD]
[TD]End
[/TD]
[TD][/TD]
[TD]SD
[/TD]
[TD]ED
[/TD]
[TD]Check
[/TD]
[/TR]
[TR]
[TD]7/20/2019
[/TD]
[TD]7/27/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]False
[/TD]
[/TR]
[TR]
[TD]7/27/2019
[/TD]
[TD]8/3/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]False
[/TD]
[/TR]
[TR]
[TD]8/3/2019
[/TD]
[TD]8/10/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]True
[/TD]
[/TR]
[TR]
[TD]8/10/2019
[/TD]
[TD]8/17/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]True
[/TD]
[/TR]
[TR]
[TD]8/17/2019
[/TD]
[TD]8/24/2019
[/TD]
[TD][/TD]
[TD]8/6/2019
[/TD]
[TD]8/12/2019
[/TD]
[TD]False
[/TD]
[/TR]
</tbody>[/TABLE]
I'm struggling with how to write the following formula in VBA:
=IF(OR((AND(D2>=A2,D2<=B2)),AND(E2>=A2,E2<=B2)),TRUE,FALSE)
This formula evaluates whether or not either the SD or theED falls between the Start Date and the End Date. I do not care which one satisfies thecriteria, I just want to know if one of them does.
I am struggling with the structure in VBA.
Thanks,
Mike