Add up numbers in a range with Excel's SUM function.
- Number 1
B2:B7The first number or range of cells to be added.
Paste any Excel formula and see what each part works out to, one step at a time, on a live spreadsheet you can edit.
Add up numbers in a range with Excel's SUM function.
B2:B7The first number or range of cells to be added.Add up numbers in a range with Excel's SUM function.
C2:C7The first number or range of cells to be added.Runs this calculation on the values.
SUM(B2:B7)SUM(C2:C7)Round a number to a set number of decimal places with the ROUND function.
SUM(B2:B7)/SUM(C2:C7)The number you want to round.2How many digits to round to. Positive rounds to decimal places, 0 rounds to a whole number, and negative rounds to the left of the decimal point.Start with the example or enter your own formula. The explainer finds each complete function call and calculates it against the editable spreadsheet.
The rows above are ordered from the innermost calculation to the final result. Excel has to finish an inner function before the function around it can use that value. Edit a cell in the grid to see that dependency chain update for real.
The sample spreadsheet is fully editable. Change the formula or any cell it references. The intermediate values recalculate in your browser.
=INDEX(C2:C8,MATCH("Alice",A2:A8,0)) See how MATCH finds Alice's row and INDEX returns her salary, with both results calculated live.
See the steps=INDEX(C2:C8,MATCH(1,(A2:A8="Widget")*(B2:B8="West"),0)) See product and region tests become Boolean arrays, combine into one mask, and resolve to a price.
See the steps=SUMPRODUCT((A2:A8="West")*C2:C8) Watch a West-region Boolean mask multiply sales row by row before SUMPRODUCT adds the surviving values.
See the steps=VLOOKUP(A2,D2:E7,2,FALSE) See why an exact-match VLOOKUP returns #N/A when the requested product ID is missing.
See the steps=IF(B2>=90,"Excellent",IF(B2>=80,"Good",IF(B2>=70,"Fine","Needs work"))) Follow a score through Excellent, Good, Fine, and Needs work tiers one IF at a time.
See the steps=IF(AND(A2>100,B2="Yes"),"Approve","Reject") See two approval conditions resolve to TRUE or FALSE before IF chooses Approve or Reject.
See the steps=SUMIFS(C2:C8,A2:A8,"West",B2:B8,">"&DATE(2026,1,1)) See which West-region sales occurred after January 1, 2026 and how their values form the total.
See the steps=MID(A2,FIND("-",A2)+1,FIND("-",A2,FIND("-",A2)+1)-FIND("-",A2)-1) Watch FIND locate both hyphens, calculate the slice boundaries, and let MID extract a SKU code.
See the steps=IFERROR(VLOOKUP(A2,D2:E7,2,FALSE),"Not found") See VLOOKUP return #N/A and IFERROR replace it with a friendly Not found message.
See the steps=FILTER(A2:C8,(B2:B8="West")*(C2:C8>100)) See region and price conditions combine into a Boolean mask and return every matching product row.
See the stepsHere is an exercise to get you started. Type the formula into a real spreadsheet and we will check your answer as you go.
Use ROUND to clean up invoice totals so each price shows exactly two decimal places.
Open exercise