Excel string within a single cell to the comma weight

If there are many repeat string comma-separated excel within a cell, for example:
John Doe, Wang Wu, John Doe, Zhao Si, bastard ...
you want to remove duplicate names, with the eyes very tired

First, a single cell is divided into a plurality of cells

Select "Data", the text can be divided

Second, remove duplicates

Where the data in the first cell A1 as an example, an alternative space
= IF (COUNTIF ($ A $ 1: A1, A1) = 1, A1, "")
and then pulling the right, the data obtained have switched to the Bank weight, duplicate data is replaced with spaces

Third, go to Space

Select all the data zone, copy, paste transformation matrix, then each column screening spaces removed.

Released five original articles · won praise 2 · Views 170

Guess you like

Origin blog.csdn.net/DUTwangtaiyu/article/details/103962037
Recommended