timestamp date and time excel code example Example: excel table row timestamp =IF(A2<>"",IF(B2<>"",B2,NOW()),"")