Bài 165: So sánh 2 cột trong Excel

#Excel #Tutorial #howto #spreadsheet #data

### Bài 165: So sánh 2 cột trong Excel

Trong hướng dẫn này, bạn sẽ học cách so sánh hai cột trong Excel.Đây là một nhiệm vụ phổ biến mà bạn có thể cần phải làm khi bạn đang làm việc với dữ liệu.Ví dụ: bạn có thể muốn so sánh hai danh sách tên để xem liệu có bất kỳ bản sao nào hay bạn có thể muốn so sánh hai bộ số để xem liệu có bất kỳ sự khác biệt nào không.

Có một vài cách khác nhau để so sánh hai cột trong Excel.Trong hướng dẫn này, chúng tôi sẽ chỉ cho bạn hai phương pháp:

1. ** Sử dụng toán tử ** = ** **
2. ** Sử dụng chức năng ** vlookup ** **

#### Sử dụng toán tử ** = **

Toán tử ** = ** là cách cơ bản nhất để so sánh hai cột trong Excel.Để sử dụng phương pháp này, chỉ cần nhập công thức sau vào ô:

`` `
= A2 = B2
`` `

Công thức này sẽ so sánh các giá trị trong các ô A2 và B2.Nếu các giá trị bằng nhau, công thức sẽ trả về giá trị ** true **.Nếu các giá trị không bằng nhau, công thức sẽ trả về giá trị ** sai **.

Bạn có thể sử dụng công thức này để so sánh bất kỳ hai cột dữ liệu nào.Ví dụ: bạn có thể sử dụng nó để so sánh hai danh sách tên, hai bộ số hoặc hai ngày.

#### bằng cách sử dụng chức năng ** vlookup **

Hàm ** vlookup ** là một cách mạnh mẽ hơn để so sánh hai cột trong Excel.Hàm ** vlookup ** cho phép bạn tìm kiếm một giá trị trong một cột và trả về giá trị tương ứng từ cột khác.

Để sử dụng chức năng ** vlookup **, bạn cần biết các thông tin sau:

1. Cột mà bạn muốn tra cứu
2. Giá trị mà bạn muốn tra cứu
3. Cột mà bạn muốn trả về giá trị từ

Sau đây là cú pháp cho chức năng ** vlookup **:

`` `
= Vlookup (Lookup_Value, Table_array, col_index_num, [Range_Lookup])
`` `

*** Lookup_Value ** là giá trị mà bạn muốn tra cứu.
*** TAGE_ARRAY ** là phạm vi của các ô chứa dữ liệu mà bạn muốn tra cứu.
*** col_index_num ** là số lượng cột mà bạn muốn trả về giá trị từ.
*** Range_Lookup ** là một giá trị logic chỉ định xem bạn có muốn thực hiện một kết quả phù hợp chính xác hay phù hợp với phạm vi.

Để so sánh hai cột bằng hàm ** vlookup **, bạn sẽ sử dụng công thức sau:

`` `
= VLOOKUP (A2, B: B, 2, Sai)
`` `

Công thức này sẽ tra cứu giá trị trong ô A2 trong phạm vi của các ô B: b.Sau đó, nó sẽ trả về giá trị từ cột thứ hai (cột B) trong cùng một hàng.

#### Bạn nên sử dụng phương pháp nào?

Cách tốt nhất để so sánh hai cột trong Excel phụ thuộc vào nhu cầu cụ thể của bạn.Nếu bạn cần thực hiện so sánh đơn giản, toán tử ** = ** là một tùy chọn tốt.Nếu bạn cần thực hiện so sánh phức tạp hơn, hàm ** vlookup ** là một tùy chọn tốt hơn.

### 5 hashtag ở dạng#

* #Excel
* #Tutorial
* #Làm cách nào để
* #spreadsheet
* #dữ liệu
=======================================
#Excel #Tutorial #howto #spreadsheet #data

### Lesson 165: Compare 2 columns in Excel

In this tutorial, you will learn how to compare two columns in Excel. This is a common task that you may need to do when you are working with data. For example, you may want to compare two lists of names to see if there are any duplicates, or you may want to compare two sets of numbers to see if there are any differences.

There are a few different ways to compare two columns in Excel. In this tutorial, we will show you two methods:

1. **Using the **=** operator**
2. **Using the **VLOOKUP** function**

#### Using the **=** operator

The **=** operator is the most basic way to compare two columns in Excel. To use this method, simply type the following formula into a cell:

```
=A2=B2
```

This formula will compare the values in cells A2 and B2. If the values are equal, the formula will return the value **TRUE**. If the values are not equal, the formula will return the value **FALSE**.

You can use this formula to compare any two columns of data. For example, you could use it to compare two lists of names, two sets of numbers, or two dates.

#### Using the **VLOOKUP** function

The **VLOOKUP** function is a more powerful way to compare two columns in Excel. The **VLOOKUP** function allows you to look up a value in one column and return the corresponding value from another column.

To use the **VLOOKUP** function, you need to know the following information:

1. The column that you want to look up in
2. The value that you want to look up
3. The column that you want to return the value from

The following is the syntax for the **VLOOKUP** function:

```
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
```

* **lookup_value** is the value that you want to look up.
* **table_array** is the range of cells that contains the data that you want to look up.
* **col_index_num** is the number of the column that you want to return the value from.
* **range_lookup** is a logical value that specifies whether you want to perform an exact match or a range match.

To compare two columns using the **VLOOKUP** function, you would use the following formula:

```
=VLOOKUP(A2, B:B, 2, FALSE)
```

This formula would look up the value in cell A2 in the range of cells B:B. It would then return the value from the second column (column B) in the same row.

#### Which method should you use?

The best way to compare two columns in Excel depends on your specific needs. If you need to perform a simple comparison, the **=** operator is a good option. If you need to perform a more complex comparison, the **VLOOKUP** function is a better option.

### 5 Hashtags in the form of #

* #Excel
* #Tutorial
* #howto
* #spreadsheet
* #data
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock