What does SUMIF do?
SUMIF checks each category in column A and adds the corresponding amount from column C when it matches Travel.
Workplace example
Expense categories appear in A2:A25 and amounts in C2:C25. Total Travel spending.
Example solution
=SUMIF(A2:A25,"Travel",C2:C25)Try the practice question before looking at the solution again. In Excel, formula arguments are separated by commas in many regional settings; your Excel installation may use semicolons.
Practice exercise
Expense categories appear in A2:A25 and amounts in C2:C25. Total Travel spending.
Take it further
Use a cell reference as the criteria instead of typing Travel.
Common mistake: Check that your ranges cover the correct rows and that text criteria are enclosed in quotation marks when required. When copying formulas, pay attention to relative versus absolute references.