Jun 18 2021 12:04 PM
Hi,
I want the Month to be true. If one or more dates in a date range is in that month.
Please see excample file for details.
Best Regards
- Geir
Jun 18 2021 12:38 PM
SolutionIn G8:
=IF(AND($E8<=G$4,$F8>=G$3),"T","F")
Fill to the right, then down or vice versa.
Jun 18 2021 03:57 PM
An Excel 365 formula that I like is
= LET(
latestStart, IF(Start>monthBegin, Start, monthBegin),
earliestEnd, IF(End<monthEnd, End, monthEnd),
overlap, 1 + earliestEnd - latestStart,
IF(overlap>0, overlap, "") )
placed in a single cell and allowed to spill. The final line can be modified to give "T" and "F" if preferred.
Jun 19 2021 02:04 AM
For the possible benefit of Excel 365 users, the following shows a spreadsheet in which the display is controlled by a check box and conditional formatting.
Jun 24 2021 11:47 PM
Jun 18 2021 12:38 PM
SolutionIn G8:
=IF(AND($E8<=G$4,$F8>=G$3),"T","F")
Fill to the right, then down or vice versa.