Code:
=MIN(IF((MONTH(dates)=MONTH(A1029))*(YEAR(dates)=YEAR(A1029));FXRJY;99999))
Dates is a series of dates, FXRJY a series of values.

Ctrl+shift+enter instead of enter.