HomeGoogle DocsSpreadsheetHow to Use the DELTA Function in Google Sheets

How to Use the DELTA Function in Google Sheets [Formula Examples]

The DELTA function in Google Sheets falls under the Engineering function category. In this post, you’ll find its purpose, syntax, and both array and non-array formula examples. It’s a simple yet effective tool in Google Sheets.

Personally, if I want to compare two numerical values in Google Sheets row-wise (e.g., between two columns), I often prefer this function. But I’ll also share a few equivalent formulas toward the end of this post.

Let’s start with the purpose of the DELTA function in Google Sheets.

Purpose

The purpose of the DELTA function is straightforward: it compares two numeric values and returns 1 if they are equal, or 0 if they are not.

Syntax

DELTA(number1, [number2])

This function accepts two arguments — both must be numeric. The second argument is optional. If omitted, the function compares the first number to 0.

You can use this function to compare two numbers, dates, timestamps, or time values. However, DELTA only works with numeric types, so dates and times are treated as numbers in the background.

Note: To compare values of other types (like text or mixed data), use the EQ function in Google Sheets instead. It returns TRUE or FALSE, unlike DELTA which returns 1 or 0.

For more on EQ and other comparison operators, check this guide:
Comparison Operators in Google Sheets and Equivalent Functions

Formula Examples Using the DELTA Function in Google Sheets

1. Compare Two Numbers

=DELTA(100, 100)

Result: 1

=DELTA(22, 25)

Result: 0

2. Compare Two Dates

=DELTA(DATE(2019,10,29), TODAY())

This formula compares 29-Oct-2019 with today’s date. If they match, it returns 1, otherwise 0.

Important: DELTA treats blank cells as 0, which can affect results if blanks are unintended.

Examples of DELTA Function in Google Sheets

Array Use of DELTA in Google Sheets

Here’s a real-world example of using the DELTA function in Google Sheets.

Imagine you have price quotations from two vendors for 10 different products:

You can use DELTA with SUMPRODUCT to compare two numerical values in Google Sheets and count how many prices match.

=SUMPRODUCT(DELTA(B3:B12, C3:C12))

This formula compares prices in columns B and C, row by row, and counts how many match.

Equivalent Formulas

You can achieve the same result using other formulas:

Formula 1:

=SUMPRODUCT(EQ(B3:B12, C3:C12))

Formula 2:

=SUMPRODUCT(B3:B12 = C3:C12)

These are helpful alternatives when comparing numbers, dates, or times across columns.

You can use similar formulas to check if order dates and dispatch dates are the same — a typical use case for comparing two date columns.

DELTA vs EQ vs Equal Sign (=)

You might wonder — when should I use DELTA, EQ, or just the = operator?

FunctionOutputWorks WithBest For
DELTA1 or 0Numbers (including dates)Numeric comparisons inside functions like SUMPRODUCT
EQTRUE/FALSEAny value type (text, number)Logical tests, conditional formatting
=TRUE/FALSEAny value typeSimple comparisons (e.g., A1=B1)
  • Use DELTA when you want numeric results (1/0) for math-based formulas.
  • Use EQ or = when you need Boolean results (TRUE/FALSE) for logical evaluations.

Conclusion

The DELTA function in Google Sheets is a compact, no-frills way to compare two numerical values in Google Sheets and get clean, numeric results. Whether you’re comparing numbers, dates, or time values, it can simplify many types of row-wise comparisons.

For other flexible comparison options, check out the EQ function or even use the = operator based on your needs.

Resources

Prashanth K V
Prashanth K V
Your Trusted Google Sheets and Excel Expert Prashanth K V is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Top Discussions

More like this

How to Build a Dynamic Nonogram Clue Generator in Google Sheets

Over the past few months, I've built a couple of games in Google Sheets,...

Carpool Cost Splitter & Rotation Tracker in Google Sheets (Free Template)

Managing a carpool can be difficult, especially when you need to track whose vehicle...

How to Build a Road Trip Fuel Cost Splitter Formula in Google Sheets

Need a fair formula to split fuel costs among travelers on a long road...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.