Information Functions MSOfficeExcel 2007 Tutorial

Input the formula: =SUM(IF(ISLOGICAL(A1:B4),1)), and Shift+Control+Enter