Please help,

I am calculating the difference between two dates, =IF(Q10>1,Q10-E10,"")
but if one of the cells is empty it's showing #VALUE!.

Is there a way to stop this happening.

Many thanks