Excel formulas and functions with =SUM(C3:C10) in the formula bar

Get the Excel Functions Practice Workbook

The salary data from the video with SUM, AVERAGE, COUNT, COUNTA, MIN, MAX and AVERAGEIFS already set up. Each formula is written out next to its result.

What Is the Difference Between a Formula and a Function?

A formula is anything you type into a cell that starts with an equals sign. =C3+C5 is a formula. So is =SUM(C3:C10).

A function is a ready-made calculation with a name, like SUM, AVERAGE or COUNT. You use functions inside your formulas.

A trumpet labeled Function next to an orchestra labeled Formula

Think of a function as one instrument and the formula as the song. Many formulas are a solo, with just one function:

=SUM(C3:C10)

Others need several functions playing together:

=ROUND(AVERAGE(C3:C10), 0)

How to Write a Basic Formula in Excel

Every formula starts with an equals sign. To add two cells, type:

=C3+C5
Formula =C3+C5 adding two salary cells in Excel

Some math symbols look different in Excel. You use * to multiply and / to divide.

Table of math symbols in Excel: plus, minus, asterisk for multiply and slash for divide

Use brackets to control the order of the calculation. Excel works out the brackets first, then multiplication and division, then addition and subtraction.

=(A3+A5)/(B2-B10)*C3

You may still see old files where formulas start with a plus sign. That’s a habit from Lotus 1-2-3. Excel still accepts it, but the equals sign is the standard.

Use Cell References, Not Typed Numbers

When your formula points to cells, it updates on its own. Change the value in C3 or C5, and the result changes with it. A number typed straight into a formula won’t update, and that’s how totals quietly go wrong.

How to Add a Range with the SUM Function

Adding hundreds of cells one by one isn’t practical. SUM adds a whole range in one go:

=SUM(C3:C10)

The colon means “through”: add C3 through C10.

=SUM(C3:C10) adding a column of salaries to 571,568

To add cells that aren’t next to each other, separate them with a comma. The comma means “and”.

=SUM(C3, C10)

Use AutoSum or Alt + =

SUM is so common that it has its own button. You’ll find AutoSum on the Formulas tab…

AutoSum button on the Formulas tab

…and on the right side of the Home tab.

AutoSum button in the Editing group on the Home tab

Select the cell below your numbers and click AutoSum, or press Alt + =.

Excel guesses the range for you. Check it, then press Enter.

AutoSum suggesting the range C3:C10 below the salary column

Click the arrow next to AutoSum for more quick functions: Average, Count Numbers, Max and Min.

AutoSum drop-down with Sum, Average, Count Numbers, Max and Min

How to Find the Function You Need

Don’t know the name of the function?

Excel can help. Go to Formulas > Insert Function.

Insert Function button on the Formulas tab

Type what you want to do, for example add numbers, and click Go.

Excel suggests functions that fit. Click one to see a short description.

Insert Function dialog box suggesting SUM after searching for add numbers

AVERAGE, COUNT, COUNTA, MIN and MAX

These five cover most everyday questions about a list:

  • AVERAGE returns the average of a range.
  • COUNT counts the cells that contain numbers. Point it at a list of names and you get 0.
  • COUNTA counts every cell that isn’t empty, including text. Use it to count names.
  • MIN returns the smallest value.
  • MAX returns the largest value.
Salary table with SUM, AVERAGE, COUNT, COUNTA, MIN and MAX results and their formulas

How to Average with a Condition Using AVERAGEIFS

What’s the average salary in the Sales department only?

AVERAGE can’t answer that. AVERAGEIFS can:

=AVERAGEIFS(C3:C10, B3:B10, "Sales")

First you tell it which numbers to average. Then you give it the range to check and what to look for. Need more conditions? Add another range and criteria pair.

AVERAGEIFS calculating the average salary for the Sales department

How to Understand Any Function with Function Arguments

Here’s the trick that makes any function easier, even one you’ve never used.

Type the equals sign, the function name and the opening bracket.

Then click the fx button to the left of the formula bar. Or press Ctrl + A.

fx button next to the formula bar while typing =AVERAGEIFS(

The Function Arguments window opens. It shows a box for each argument.

Click into a box, and Excel explains what goes there.

Function Arguments dialog box for AVERAGEIFS with an explanation of each argument

Need examples? Click Help on this function at the bottom left.

It opens Microsoft’s help page for that function.

Microsoft help page for the AVERAGEIFS function

Download the Practice Workbook

Download the Practice Workbook

Practice every function from this tutorial on the same data as the video.

Frequently Asked Questions

What is the difference between a formula and a function in Excel?

A formula is anything you type into a cell that starts with an equals sign, such as =C3+C5. A function is a ready-made calculation with a name, such as SUM or AVERAGE, that you use inside a formula.

How do I add up a column in Excel?

Select the cell below the numbers and press Alt + = or click AutoSum on the Home or Formulas tab. Excel writes a SUM formula such as =SUM(C3:C10). Check the range and press Enter.

What is the difference between COUNT and COUNTA?

COUNT only counts cells that contain numbers, so it returns 0 on a list of names. COUNTA counts every cell that is not empty, including text.

How do I calculate an average with a condition in Excel?

Use AVERAGEIFS. Give it the range to average, the range to check and the criteria. With the department name in cell E2, =AVERAGEIFS(C3:C10, B3:B10, E2) returns the average salary for that department.

How do I see what each argument of a function means?

Type the equals sign, the function name and the opening bracket, then click the fx button next to the formula bar or press Ctrl + A. The Function Arguments window explains each argument as you click into it.

Why does my Excel formula show as text instead of a result?

Check that the formula starts with an equals sign. If the cell was formatted as Text before you typed, change it to General and enter the formula again. If every formula shows as text, turn off Formulas > Show Formulas.

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.