IF関数とAND関数で、30分単位の条件式を作ればできそうです。
=IF(H1<TIME(8,30,0),"8:30",IF(AND(H1>=TIME(8,31,0),H1<TIME(9,1,0)),"9:00"))
=IF(H2<TIME(18,10,0),"17:40",IF(AND(H2>=TIME(18,10,0)),"18:10"))