with VLookup in a table.

put the months in column A and the quarter i column B

=Vlookup(g2,sheet2!a1:b12,2,0)