The Excel COUNTIF function is a very smart mix of the COUNT and IF functions of Excel. Using this function you can count cells that meet a specified condition.