Practice file to follow along

The fastest way to learn calculating in Excel is to type the formulas yourself. The practice file has six tasks. Next to each result there is a check cell that says "correct" or "not yet" as soon as you have entered a formula. No email address needed.

  • Practice file for calculating with sum, average, rounding, COUNT, find the error and the cent difference
  • Answers with every formula filled in, plus each formula written out the way you type it

All items and amounts in the file are invented example data.

The basic rule is to start with =

If you type 5+3 into a cell, Excel shows text. Only with an equals sign in front does Excel calculate, so =5+3 returns 8. Instead of numbers you usually use cells, so Excel recalculates as soon as a value changes.

CalculationSignExample
Add+=B5+C5
Subtract-=B5-C5
Multiply*=B5*C5
Divide/=B5/C5
Brackets( )=(B5+C5)*0.9

Excel multiplies and divides before it adds and subtracts, just like at school. In English Excel you write decimals with a point, as in 0.9. German and French Excel use a comma.

SUM adds up numbers and columns

=SUM(number1,[number2],...)

For a whole column you give the range. =SUM(D5:D9) adds every number from D5 to D9. Separate several ranges with commas, as in =SUM(D5:D9,F5:F9).

AutoSum is even faster. Click the cell right below your numbers, then select AutoSum on the Home tab. Excel suggests the range above, and you confirm with Enter.

Example from the practice file (task 1). In D5 to D9 you multiply quantity by unit price for each line, such as =B5*C5 for 10 packs of copy paper at $4.99. In D10, =SUM(D5:D9) adds all lines up to $117.05.

Why SUM instead of =D5+D6+D7+D8+D9? If one of the cells contains text, the plus formula returns #VALUE!. SUM skips text and keeps adding the numbers. The range also adjusts when you insert rows.

AVERAGE calculates the mean

=AVERAGE(number1,[number2],...)

AVERAGE adds up the numbers and divides by how many there are. One rule matters here. Empty cells are not counted, cells with 0 are.

Example (task 2). Your team counts calls per day. Monday 12, Tuesday 9, Wednesday empty, Thursday 0, Friday 15. =AVERAGE(B5:B9) returns 9, which is 36 calls divided by 4 days. The empty Wednesday is skipped, the 0 on Thursday counts. With a 0 on Wednesday the average would be 7.2.

So only enter 0 when 0 really happened. If you want to leave zeros out of the average, use AVERAGEIF with the condition "not equal to 0".

=AVERAGEIF(B5:B9,"<>0")

COUNT or COUNTA?

Both functions count, but not the same things.

Functioncountsdoes not count
COUNTcells with numbers and datestext, logical values, errors, empty cells
COUNTAevery cell that is not empty, including text, errors and formulas that return empty text ""only truly empty cells

Example (task 4). A participant list has seven names with their payments next to them. =COUNTA(A5:A12) counts the names and returns 7. =COUNT(B5:B12) counts the payments and returns 5, although six amounts are there. One amount is stored as text, and COUNT does not count text.

Remember this. To find out how many rows are filled, use COUNTA on a column that is always filled, such as the names. To find out how many numbers there are, use COUNT. A cell with just a space is not empty for COUNTA.

ROUND, ROUNDUP and ROUNDDOWN

=ROUND(number,num_digits)

The second argument decides how Excel rounds.

num_digitsEffectExampleResult
greater than 0to that many decimals=ROUND(14.6846,2)14.68
0to a whole number=ROUND(14.6846,0)15
less than 0left of the decimal point, such as to hundreds=ROUND(1234.5,-2)1,200

ROUNDUP always rounds away from 0, ROUNDDOWN always toward 0. Both take the same arguments as ROUND.

  • =ROUNDUP(14.68,0) returns 15
  • =ROUNDDOWN(14.68,0) returns 14

Example (task 3). A list price of $12.34 with a 10% discount becomes $11.11 with =ROUND(A5*0.9,2). =ROUNDUP(B5,0) turns that into $12.

Format or function and what Excel really calculates with

If you set two decimals in the number format, only the display changes. Excel keeps calculating with every digit. That leads to results that look wrong at first sight.

Here is an example. Divide $10 by 3, and Excel shows $3.33 with two decimals. Add up that result three times, and Excel shows $10.00, although 3.33 + 3.33 + 3.33 is only 9.99. Excel calculated with 3.3333…

If Excel should really continue with 3.33, round with the function, as in =ROUND(10/3,2). As a rule of thumb, the format is for display and ROUND is for amounts you keep calculating with.

The cent difference on invoices

If you round each line of an invoice to cents and then add them up, the result is sometimes different from adding first and rounding after.

Example (task 6). Four items at $4.99, $12.49, $0.87 and $3.49, each with a 10% discount.

MethodCalculationResult
round each line, then add4.49 + 11.24 + 0.78 + 3.14$19.65
add first, then round21.84 × 0.9 = 19.656$19.66

Both are calculated correctly, they just round at different points. What matters is that your sheet sticks to one method. If the invoice shows an amount per line, the total has to be the sum of exactly those rounded lines. Your accounting team knows which method your company uses.

Tiny rounding rests and why 0.9 is not always 0.9

Excel stores numbers in binary with 15 digits of precision. Some decimals such as 0.1 cannot be stored exactly in binary, which leaves tiny rests.

Microsoft shows this with an example. =(43.1-43.2)+1 displays 0.9. If you set 15 decimals in the number format, you see a value just below it, 0.8999… For the display this does not matter. In comparisons such as =A1=B1, though, Excel can return FALSE although both cells look the same.

The fix is ROUND again, inside the comparison, as in =ROUND(A1,2)=ROUND(B1,2). That way Excel compares only the digits that matter to you. More on comparing with conditions is in our guide to the IF function.

Common calculation errors

What you seeCauseFix
The formula shows as text in the cellThe = at the start is missing, or the cell is formatted as text.Add the =, set the cell format to General and enter the formula again.
Total too small or 0Numbers are stored as text, and SUM skips them.Turn the text numbers into numbers, for example with the warning icon next to the cell. You practice this in task 5.
#VALUE!A plus formula such as =A1+B1 hits text.Use SUM or turn the text into a number.
Excel turns 0,9 into textDecimal comma instead of point in English Excel.Type decimals with a point, as in 0.9.
#####The column is too narrow for the result.Make the column wider.
Average too lowMissing values are entered as 0.Leave those cells empty or use AVERAGEIF with "<>0".
The total of what you see does not add upOnly the format is rounded.Calculate with ROUND.
#NAME?SUMME or SOMME typed in English Excel.Type the English name SUM.

If your numbers come from a CSV file, they are often stored as text. Our guide on how to open a CSV file in Excel shows how to stop that during the import. Every error value is explained in our guide to Excel errors.

Which Excel versions have these functions?

SUM, AVERAGE, AVERAGEIF, COUNT, COUNTA, ROUND, ROUNDUP and ROUNDDOWN are available in all current Excel versions, including Excel for the web and Excel for Mac.

  • IF calculates only when a condition is met
  • SUMIF adds up only the rows that meet a condition
  • COUNTIF counts only the cells that meet a condition
  • MIN and MAX return the smallest and largest value

You find all functions with their English, German and French names in the Excel functions list.

What to learn next

Once the practice file works, recalculate a list of your own, such as your travel expenses. You can practice formulas like this in our Excel exercises with instant feedback. The Excel test shows you where you stand.

Sources

Function and argument names, how empty cells, text and 0 are treated, AutoSum and floating point from Microsoft's help pages, November 2026.