Compare a Cell with the Sum of Multiple Cells in Excel
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.

- 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.
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.
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.
In your Excel worksheet, click an empty cell where you want the TRUE or FALSE result to appear.
Type =IF(AND(ISNUMBER(E2),COUNT(J2:L2)=3),E2=SUM(J2:L2),FALSE) and press Enter.
If needed, drag the result cell's fill handle down to compare the corresponding cells in additional rows.

Compare the sum when some input cells may be blank
Use this option when one or two cells in J2:L2 may be blank, but at least one must contain a number.
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. Open your workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Select a result cell: Click an empty cell in the row containing the value and the three inputs you want to compare.
- 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. Copy the formula: Drag the result cell's fill handle down if you need to check more rows.

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.




