EXCEL TRAINING · LESSON 6 OF 8 · 3 MIN READ

Add matching amounts with SUMIF

Keep the criteria range aligned with the amount range.

Understand the idea

SUMIF adds amounts whose corresponding category or value meets one condition. The criteria range is where the condition is tested. The sum range contains the numbers to add. These ranges should represent the same rows so each condition is paired with the correct amount.

Work through it

Identify the condition, its range and the amount range separately. Check that both ranges start and end on the same records. Write the formula, then manually add a few matching rows to check the result. Avoid sorting only one column, which can break relationships between records.

SEE IT IN CONTEXT

Worked example

A2:A4 regions: North, South, North
B2:B4 amounts: 10, 20, 30
=SUMIF(A2:A4,"North",B2:B4)
Result: 40

The first and third rows match North, so their amounts are added. The South amount is not included. This is a sum of matching amounts, not the number of matching records.

Common mistakes to avoid

  • Reversing the criteria and amount ranges.
  • Using ranges that refer to different rows.
  • Including every amount regardless of category.

NOW HAVE A GO

Report sales for one region

Apply the idea in the linked activity. Follow its own brief and values; examples in this lesson are illustrative.

Try the practice activity →Download the Excel workbook
About the linked activity

Examples use English function names and comma separators. Your spreadsheet app may use local names or separators. The browser checker supports the functions listed in each activity, rather than all of Excel.

Reading marks are self-reported and saved only in this browser.

0 of 8 lessons marked as read

Keep learning: Reference documentation ↗

YOUR LEARNING JOURNEY

Look how far you’ve come.

Your progress is saved in this browser. Clearing browser data removes it.

Course reading progress

Reading marks are separate from completed practice activities.

Practice activity progress

Manage saved progress

This removes your completed-challenge history from this browser.