Cross-Foot Check (Totals Tie)

Excel Formulas › Auditing & Error-Proofing

All versionsSUM

In a totaled grid, the sum of row totals must equal the sum of column totals — and both must equal the grand total. A cross-foot check returns TRUE only when the table is internally consistent.


Quick formula: do the row and column totals agree?
=ROUND(SUM(row_totals) - SUM(col_totals), 2) = 0
Sum the row totals and the column totals; if their difference rounds to zero, the grid cross-foots.

Functions used (tap for the full reference guide):

The example

Row sums and column sums both = grand total.

AB
1CheckResult
2Rows = Cols?TRUE

The formula

The formula:

=ROUND(SUM(row_totals) - SUM(col_totals), 2) = 0 // row sum = col sum

How it works

How it works:

  1. Sum the row totals and, separately, the column totals.
  2. They must be equal — and equal the grand total — in a correct table.
  3. Wrap the difference in ROUND(…, 2) before comparing to 0 to absorb floating-point dust.
  4. Return TRUE/FALSE, or an IF message, as a one-cell integrity check.

Never compare floats with plain =. SUM(rows) = SUM(cols) can return FALSE even when the numbers are “equal” because of tiny binary rounding errors. Always compare the difference to zero after ROUND: ROUND(a - b, 2) = 0. This single habit prevents phantom reconciliation failures across the whole sheet.

Try it: interactive demo

Live demo

Row totals and column totals (comma-separated).

Ties?

Variations

Vs grand total

Three-way tie:

=AND(SUM(rows)=grand, SUM(cols)=grand)

Show the difference

How far off:

=SUM(row_totals) - SUM(col_totals)

Pass/fail message

Readable:

=IF(ROUND(SUM(rows)-SUM(cols),2)=0, "Balanced", "CHECK")

Pitfalls & errors

ROUND before comparing. Floating-point dust breaks a plain = on sums.

Tie to the grand total. Rows = cols isn’t enough if both miss the grand total.

Watch hidden rows. SUM includes filtered-out rows; use SUBTOTAL if you mean visible only.

Practice workbook

📊
Download the free Cross-Foot Check (Totals Tie) practice workbook
A cross-foot sheet with the grand-total, difference, and message variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I cross-foot a table in Excel?
Check that row and column totals agree: =ROUND(SUM(row_totals) - SUM(col_totals), 2) = 0.
Why does my totals check return FALSE when they look equal?
Floating-point rounding. Compare the difference to zero after ROUND, not the sums directly.
How do I tie to the grand total too?
Use =AND(SUM(rows)=grand, SUM(cols)=grand) for a three-way check.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Round to cents · Check totals tie to detail · Subtotal visible rows

Function references: SUM