I'm using a SUMIF statement where the criteria tests to see if a date is before a fixed date in another cell.

=SUMIF(A4:A24,<D2,B4:B24)

where A are dates entered as MMM-YY format and "D2" is a date in the same format.

SUMIF does not seem to work for dates and I can't find "help" on the issue