Practical Excel skills sharing: three commonly used methods for checking data
I think those who often use Excel will encounter the problem of checking data. How do you usually do it? Today I will share with you the three most commonly used methods for checking data, come and take a look!
#How to check the difference between two columns of data is a problem often encountered by partners who use Excel. As shown in the figure below, the left column is all the order numbers, and the right column is the order numbers that have been shipped. You need to determine whether there is a difference between the order numbers in the two columns.
This type of problem sounds simple and can be solved using the VLOOKUP function or COUNTIF function, but the actual situation is more complicated. The two columns of data, which is the comparison value (search value or condition value) and which is the reference value (search range or counting area), directly affect the actual meaning contained in the function result.
Today the veteran will sort out these problems. I hope that friends can solve them clearly when they encounter data verification problems in the future.
1. Use the VLOOKUP function to check the data
##1. Column C is used as the comparison value (lookup value)
Formula=VLOOKUP(C2,A:A,1,0)You can get the result shown in the figure below:
2. Column A is used as a comparison value (lookup value)
Formula=VLOOKUP(A2,C:C,1,0) Yes The result shown in the figure below is obtained:
Extended application:
If you want to display the error value as information that needs to be prompted, you can use the IFERROR function to cooperate. For example, formula 1 can be modified as:=IFERROR(VLOOKUP(C2,A:A,1,0),"The order number is incorrect and needs to be verified"), and formula 2 can be modified as:
=IFERROR (VLOOKUP(A2,C:C,1,0),"Not Shipped"), the result is as shown in the figure:
=IF(ISERROR(VLOOKUP(A2,C:C,1,0)),"Not Sent Goods", "shipped"), Formula 1 can be modified as:
=IF(ISERROR(VLOOKUP(C2,A:A,1,0)),"The order number is incorrect and needs to be verified", "Normal"), the result is as shown in the figure:
2. Use COUNTIF to check two columns of data
COUNTIF is a conditional counting function that requires two parameters in the format of COUNTIF (Counting Area , condition value). In this example, there are still two formulas, namely:=COUNTIF(A:A,C2) and
=COUNTIF(C:C,A2), the results are as shown in the figure Show.
There are also two results obtained by COUNTIF, 0 and a number greater than 0, indicating the number of times the condition value (the second parameter, that is, the comparison value) appears in the counting area (the first parameter, that is, the reference value). A result of 0 indicates that it has not occurred, which has the same meaning as VLOOKUP's #N/A.
If you want to add prompt information, you can combine it with the IF function. The corresponding formula is: =IF(COUNTIF(A:A,C2)=0,"The order number is incorrect and needs to be verified"," Normal")
and =IF(COUNTIF(C:C,A2)=0,"Not shipped","Shipped")
, the result is as shown in the figure.
3. Use MATCH to check two columns of data
The function of the MATCH function is to get the search value in Find the location number in the area. The function requires three parameters, in the format: MATCH (search value, search area, search method). In this example, the two formulas are: =MATCH(C2,A:A,0)
and =MATCH(A2,C:C,0)
, the result is as shown in the figure.
The result of the MATCH function is similar to that of VLOOKUP. The difference is that VLOOKUP gets the corresponding content (order number), while MATCH gets the line number where the order number is located.
Personally, I think it is more convenient to use the MATCH function when checking two columns of data. Not only can you compare the differences between the two columns of data, but you can also get the specific location of the result, which is very important at some times.
The method of combining MATCH function with IFERROR is exactly the same as VLOOKUP, so I won’t give an example.
In fact, MATCH is a very useful function. If you like this tutorial, please remember to support us. We will introduce more examples to you later!
Related learning recommendations: excel tutorial
The above is the detailed content of Practical Excel skills sharing: three commonly used methods for checking data. For more information, please follow other related articles on the PHP Chinese website!

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver Mac version
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment