Method to check whether the names of the two columns are consistent: first select cell F3 and enter "=" in the cell; then click the [Insert Function] button and select the "IF" function in "Select Function" ; Then in the dialog box behind the first parameter, enter "COUNTIF(B3:B12,E3)>0"; and finally set the parameters.
The operating environment of this article: Windows 7 system, Microsoft Office Excel 2010 version, Dell G3 computer.
1. As shown below, it is required to check whether the text contents in columns B and E are the same, and the results are displayed in column F.
#2. Select cell F3, enter "=" in the cell, and then click the [Insert Function] button.
3. As shown below, the [Insert Function] dialog box pops up, select "All" in "Or Select Category", and then select "IF" in "Select Function" ” function, and then click the [OK] button.
[Recommended learning: Excel tutorial]
4. The [Function Parameters] dialog box pops up: move the cursor to the first In the dialog box behind the first parameter, enter "COUNTIF(B3:B12,E3)>0";
5. Move the cursor to the second parameter In the following dialog box, enter "the same";
#6. Move the cursor to the dialog box after the third parameter and enter "different" , click the [OK] button after setting all parameters.
7. Return to the worksheet, select cell F3 and drag the left mouse button to check the data in the two columns.
The above is the detailed content of How to check whether the names in two columns are consistent?. For more information, please follow other related articles on the PHP Chinese website!