Hi
I am using Excel 2003.
Skip helped with a formula for finding the month that is 5 months less than the user selected "dateSelected" but it doesn't account for February. In other words, when July 31 is selected, March 3 shows instead of Feb but March is already selected for the 31 (and only one March of data exists).
The code is:
Any assistance greatly appreciated, thanks.
I am using Excel 2003.
Skip helped with a formula for finding the month that is 5 months less than the user selected "dateSelected" but it doesn't account for February. In other words, when July 31 is selected, March 3 shows instead of Feb but March is already selected for the 31 (and only one March of data exists).
The code is:
Code:
=IF(DATE(YEAR(DateSelected), MONTH(DateSelected)-5, DAY(DateSelected))<MIN(MyDates),MIN(MyDates),DATE(YEAR(DateSelected), MONTH(DateSelected)-5, DAY(DateSelected)))
Any assistance greatly appreciated, thanks.