How does Excel filter duplicate data in operations?

bb42092402f48389de6a0f188b3042c2.jpeg Come to Baidu APP to enjoy high-definition pictures

Problem: The data in the two comparison tables is actually repeated but not completely repeated. For example, the order of ab and ba is just changed, but the conditional format cannot be filtered, and only the same data of ab ab can be filtered out.

Requirement: To filter out the duplicate data of ab =ab =ba, or change the ba of the entire row or column to ab.

Solution:

1. Create an auxiliary column to sort the data in each comparison table according to specific rules. For example, sort "ab" and "ba" into "ab". You can use Excel's formula function to achieve this. Assuming the data is in column A and the auxiliary column is in column B, use the following formula:
- `=IF(A1>A2, A2 & "-" & A1, A1 & "-" & A2)`
to apply the above formula to the entire auxiliary column .

2. Then use conditional formatting to filter out duplicate values ​​in the helper column:
- Check the helper column.
- Select the "Home" tab from the Excel menu.
- Click "Conditional Formatting."
- Select "Highlight Cell Rules" and then select "Duplicate Values".
- In the dialog box that pops up, select "Set value without formatting".
- Click OK.

In this way, duplicate values ​​in the auxiliary column will be highlighted, and you can filter out qualified duplicate data based on these duplicate values.

ba621b3760e88f5e71591b37e9a1a4d9.jpeg
If you want to change "ba" into "ab" in the entire row or column, you can use Excel's text function and find and replace function to achieve it: 1. Assuming the data is in column A, you want to change "AB" into "BA

" , enter the following formula in column B:
- `=IF(LEFT(A1,2)="A-", "B"&RIGHT(A1,LEN(A1)-2), A1)`

2. Apply the formula to The entire column B.

3. Copy the data in column B, then select column A, and use the "Paste Special" option to overwrite the value of the data in column A.

In this way, "BA" can be changed to "AB". The same approach applies to the entire column case. #excel skills#


Guess you like

Origin blog.csdn.net/pictoexcel/article/details/131588911