subtract in excel formula if one of the cell blank code example Example: excel check if cell not empty IF(A1<>"","Not empty","Empty")