The solution below is based on the SUMPRODUCT function, the MONTH function, andBoolean algebra.
For convenience,amount(C5:C16) anddate(B5:B16) arenamed ranges.
All remaining values are FALSE, since other dates do not occur in January.
This step is necessary because we don’t have a math operation doing this conversion automatically.