The COUNT function is a built-in function in Microsoft Excel (and in other spreadsheet programs) that counts the number of cells in a range that contain numeric values. The COUNT function can also count cells that contain dates, times, and logical values (TRUE or FALSE).