← All how-to recipes

How to SUMIF from another sheet

✓ Verified in LibreOffice 25.8.7.3 ✓ Verified in Google Sheets (2026-08-30)

Conditionally total data that lives on a different tab — a summary sheet reading a data sheet.

The formula

AppFormulaNotes
Excel (desktop)=SUMIF(Data!A:A,"East",Data!B:B)Prefix every range with the sheet name. All ranges must be on the SAME other sheet and the same size.
Google Sheets=SUMIF(Data!A:A,"East",Data!B:B)Identical.
LibreOffice Calc=SUMIF(Data.A:A,"East",Data.B:B)LibreOffice uses a dot: Data.A:A.

How it works

A cross-sheet SUMIF is an ordinary SUMIF with each range prefixed by the source tab: the two East rows on the Data sheet total 100 + 25 = 125. The criteria range and sum range must both live on that same sheet and match in size. Excel and Google Sheets write Data!A:A; LibreOffice writes Data.A:A (dot). SUMIFS, COUNTIF, and AVERAGEIF all take cross-sheet ranges the same way. Verified by running the formula against a real second tab.

Verified, not just documented

We ran =SUMIF(Data!A1:A3,"East",Data!B1:B3) in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned 125 — exactly the expected result. We then ran the same formulas in Google Sheets, executed 2026-08-30: a formula-only workbook goes into Google Drive, which converts it to a Sheet and recalculates every formula with Google’s own engine, and comes back out as .xlsx carrying the values Google computed. It returned 125 for the worked example, the same value LibreOffice produced. Both engines’ numbers on this page are executed results. The Excel formula follows Microsoft’s official documented syntax — we do not run desktop Excel.

Functions used

SUMIF — see full Excel, Google Sheets & LibreOffice compatibility for each.

Related recipes

Related comparisons