Hi there,
how do I go by...

if A1 is blank then ignore if A1 is not blank then look up date in B1 and count by month in C1.