Formula Errors

Compare a Cell with the Sum of Multiple Cells in Excel

Emma BrownEmma Brown Dec 2, 2026 869 views

Question details

Compare one cell with the sum of three other cells without creating a separate total column, while accounting for blank or incomplete inputs.

Compare a Cell with the Sum of Multiple Cells in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants to compare the value in E2 with the combined values in J2:L2.
Observed behavior
The desired result is TRUE when the numeric values match and FALSE when they do not or when required inputs are incomplete.
Before you start

Identify the cell to compare and the cells to add. The examples use E2 and J2:L2; replace these references with your own if needed.

Solution 1Recommended

Compare the sum only when all three inputs are numeric

Use this formula when E2 and all three cells in J2:L2 must contain numbers before a match is allowed.

1
Select a result cell

In your Excel worksheet, click an empty cell where you want the TRUE or FALSE result to appear.

2
Enter the formula

Type =IF(AND(ISNUMBER(E2),COUNT(J2:L2)=3),E2=SUM(J2:L2),FALSE) and press Enter.

3
Apply it to other rows

If needed, drag the result cell's fill handle down to compare the corresponding cells in additional rows.

Compare the sum only when all three inputs are numeric
How incomplete inputs are handled: COUNT requires three numeric values in J2:L2, and ISNUMBER requires a numeric value in E2. Blanks, text, and errors in these required cells cause the formula to return FALSE; zero counts as a number.
Compare values in WPS Spreadsheets

Compare a Cell with a Sum in WPS Spreadsheets

Use the same numeric comparison formula in WPS Spreadsheets to check a cell against three inputs without a separate total column.

  1. 1. Open your workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Select a result cell: Click an empty cell in the row containing the value and the three inputs you want to compare.
  3. 3. Enter the comparison: Type =IF(AND(ISNUMBER(E2),COUNT(J2:L2)=3),E2=SUM(J2:L2),FALSE), adjusting the cell references if needed, and press Enter.
  4. 4. Copy the formula: Drag the result cell's fill handle down if you need to check more rows.
Check for matching sums while rejecting incomplete numeric inputs.Open and edit Microsoft Excel XLSX and XLS files.Use familiar spreadsheet formulas and a lightweight interface.Work with spreadsheets for free.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula return FALSE when the cells look equal?

Check that E2 and all three cells in J2:L2 contain numeric values. The recommended formula returns FALSE if any required cell is blank, contains text, or has an error.

Can I show a blank instead of FALSE for incomplete inputs?

Yes. In the result cell, use =IF(AND(ISNUMBER(E2),COUNT(J2:L2)=3),E2=SUM(J2:L2),""). Complete inputs still return TRUE or FALSE.

Do I need EXACT to compare the numbers?

No. Use E2=SUM(J2:L2) for a numeric comparison. EXACT compares text representations and is not necessary for this task.

How can I compare values rounded to two decimal places?

If two-decimal precision is appropriate, replace the comparison with ROUND(E2,2)=ROUND(SUM(J2:L2),2) inside the IF formula. This compares the rounded value with the rounded total.