The needful can be achieved using the COUNTIF function. You could either count the frequency of duplicates in Excel or the order of their occurrence in Excel. Count the frequency of duplicate values ...
When counting unique values in Microsoft Excel, use UNIQUE() as a helper function and avoid more complicated expressions. The TechRepublic article How to create a sorted unique list in an Excel ...