Hi zzzqinzzz,

Welcome to ExcelFox !!

=COUNTIF($A:$A,A7) should work. Are you sure A7 is the correct reference cell ? Also check the spelling or any leading or trailing space.

If this doesn't work for you, attach a workbook.