If you just have those 2 ranges, try this...
=IF(A2<2018,"Project1",IF(AND(A2>2170,A2<=2181),"Project9",""))