How to check if two values ​​are equal in Excel

In Excel, you have many formulas to help determine whether two values ​​are equal. The DELTA function in Excel will help you do this easily.

In Excel, you have many formulas to help determine whether two values ​​are equal. The DELTA function in Excel will help you do this easily.

 

What is the Delta function in Excel?

 

Delta is an Excel function that checks if two numerical values ​​are equal. If they are equal, DELTA returns 1; otherwise, it returns 0.

=DELTA(number1, number2)

The DELTA function only calculates numerical values, and if number2 is empty, this Excel function defaults to 0.

How to check for equality between two values ​​using the DELTA function.

The example below has two columns of numbers, and you want to know how many pairs of numbers are equal. Here, you would use the DELTA function to check if the numbers in each pair are equal. Then, count the number of equal pairs using the COUNTIF function. Here's how to do it:

 

1. Select the first cell in the column you want to check. In this example, it's cell C2.

2. In the formula bar, enter:=DELTA(A2, B2)

3. Press Enter . DELTA will now tell you whether the two numbers are equal.

4. Drag the fill bar and drop it into the box below to get the result for all the numbers.

The DELTA function checks the numbers in A2 and B2 and finds they are equal. The formula returns 1. If the two numbers are not equal, the formula returns 0.

Now you can see the pairs of equal numbers. Next, to count the number of equal pairs, you have to use the COUNTIF function. Since DELTA returns 1 to indicate each equal pair, you can have the COUNTIF function pass in the DELTA output and count the cells containing 1.

1. Select the cell where you want to display the number of pairs of equal numbers.

2. In the formula bar, enter: =COUNTIF(C2:C10, "=1").

3. Press Enter .

This formula will call COUNTIF to check cells C2 through C10 (results from the DELTA function and return a cell number equal to 1).

Above is how to check and count identical numbers in Excel. Hopefully, this article is helpful to you.

Related posts
Other Program articles
  • How to insert and customize selection buttons in Excel

    nút radio (nút tùy chọn) giúp người dùng excel xem và di chuyển trên bảng tính dễ hơn. dưới đây là cách tạo nút chọn trong excel.
  • How to show or hide chart axes in Excel

    học cách hiện hay ẩn các trục biểu đồ trong excel có thể làm dữ liệu của bạn trông gọn gàng và chuyên nghiệp hơn. dưới đây là chi tiết cách hiện, ẩn trục biểu đồ trong microsoft excel.
  • Excel 2019 (Part 21): Tables

    cũng giống như định dạng thông thường, bảng có thể cải thiện giao diện của workbook, giúp tổ chức nội dung và làm cho dữ liệu của bạn dễ sử dụng hơn.
  • Excel 2019 (Part 16): Basic Tips for Working with Data

    cho dù bạn đang làm việc với 20 ô hay 20.000 ô, excel có một số tính năng để giúp bạn sắp xếp dữ liệu và tìm thấy những gì mình cần.
  • Excel 2019 (Part 10): Spell Checking

    excel bao gồm một công cụ kiểm tra chính tả mà bạn có thể sử dụng để đảm bảo mọi thứ trong workbook của mình được viết đúng chính tả.
  • Excel 2019 (Part 9): The Find & Replace Feature

    bạn có thể dễ dàng tìm kiếm trong workbook của mình bằng tính năng find, tính năng này cũng cho phép bạn sửa đổi nội dung bằng tính năng replace.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup