Quickly delete duplicate rows to improve work efficiency, Excel uses the countif function to count and sort specific fields

Program code garden posting address: quickly delete duplicate rows, improve work efficiency, Excel uses the countif function to count and sort specific fields-Program Code Park Novels, Java, HTML, Java Gadgets, Program Code Park, http://www. byqws.com/ , Excel uses the countif function to count and sort specific fields, quickly delete duplicate rows, and improve work efficiency http://www.byqws.com/blog/1065.html

 

Problem Description:

 

In the work, collect and organize the sales (POS) data returned by supermarkets. Since each supermarket has different names for the product information built in the system for the same barcode, in the process of removing duplicates, the removal of duplicates on Excel The function of duplicate items cannot meet the corresponding needs; before this, no good method was found, and the duplicate row data was deleted one by one manually, which was time-consuming and labor-intensive, and it was easy to delete the wrong content.

Solution:

1. Barcode sorting makes the same barcodes all together;

2. Use Excel's conditional formatting function to highlight repeated barcodes;

3. Use  the countif  function to sort the barcodes;

4. Filter out the content whose serial number is greater than 1, and delete duplicate rows;

As shown in the figure, the same barcode has duplicate rows in different stores and different months. The function of removing duplicates on Excel cannot meet the requirements if the duplicate rows cannot be deleted. In fact, when we sort out the basic data, we only need not Just repeat one line of content.

Step 1: Sort the content according to the barcode so that the same barcodes are all together for easy observation;

Step 2: Excel's conditional formatting function, highlight repeated barcodes; select barcode column->conditional formatting->highlight cell rules->duplicate values;

Step 3: Add a new column "Barcode Sort", enter the formula "=COUNTIF(F$3:F3,F3)" in the cell below

Parameter 1 : range The range in which the number of non-empty cells is to be calculated, such as: F$3:F3, which means the range from the first cell where the barcode is located to the current cell;

Parameter 2 : criteria A condition defined in the form of numbers, expressions or text, such as: F3, which means counting the occurrence of barcodes within the specified range;

apply the formula to the entire column;

Step 4: Filter out the content with a serial number greater than 1 in the "Barcode Sort" column, delete, and delete duplicate rows;

Counting and sorting specific fields through the countif function can solve similar problems, and use this solution to solve other problems, thereby improving work efficiency.

 Program code garden posting address: quickly delete duplicate rows, improve work efficiency, Excel uses the countif function to count and sort specific fields-Program Code Park Novels, Java, HTML, Java Gadgets, Program Code Park, http://www. byqws.com/ , Excel uses the countif function to count and sort specific fields, quickly delete duplicate rows, and improve work efficiency http://www.byqws.com/blog/1065.html

Guess you like

Origin blog.csdn.net/qq_41674785/article/details/130901314