There are many similar sounding questions to this but they either seem to be about Excel formulas (instead of actual VBA code) or they just don't fit my problem.
I have a named range in my sheet which lists a few time periods along with their respective start and end dates:
I've named the range from M6 to O19 as "Periods" (the named range excludes the headers).
I need to have a VBA function which will check for the first Period for which a given date is greater than "Start" and less than "End".
Again, I have trawled through dozens of questions on SO but honestly nothing helped me. I've tried to adapt multiple answers to my problem but I'm still now left with an empty sub:
Public Function LookupNTAPeriod(lookupDate As Date) As String
End Function
