The formula counts the number of names in column B till the current row, and increments the number in column A (from the upper cell) if the name has occurred only once till that row, else returns the same number as in the upper cell (in column A). You will notice that if the number increments from the previous/upper cell in column A, then the corresponding record in column B is unique. Enter the formula =IF(COUNTIF( $B$2:B3,B3)=1, A2+1, A2) in cell A3 and copy it down column A. Enter 1 in the first cell corresponding to the first name in column B. Create a helper Column towards the left viz. Column B contains a list of names, including duplicates and a List of Unique Names is returned in column C, with the creation of the helper column (column A). Related Links: Count Number of Unique Values, with Excel Functions Remove Duplicates or Create a List of Unique Records Using Advanced Data Filter Remove Duplicates in a range, using "Remove duplicates" button in Data Tools - Remove Duplicates or Create a List of Unique Records in Excel Create a List of Unique Records (Using Excel Formula): 1.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |