Logical Functions MSOfficeExcel 2007 Tutorial

Input the formula: =IFERROR(A2/B2, "Error in calculation")