You can also do that with the COUNTIF function.
Some Excel users might need to count all the duplicate values or items within a spreadsheet column. Count All Duplicate Values Within a Column or Row For example, to include a range of cells in Sheet 3, the function would be something like: =COUNTIF(A2:A7,45)+COUNTIF(Sheet3!C3:C8,252). That would require modifying the required cell ranges so that they include a sheet reference, such as Sheet2! Or Sheet3!, in the cell reference. The function can also count values in cell ranges across multiple Excel spreadsheets.