how about =if(I2="","",(days(I2,H2))
if you want a zero then adjust to =if(I2="",0,(days(I2,H2))