←Module 4
Lesson · 35 min

Working with Functions

Learn how to use Excel functions including SUM, AVERAGE, COUNT, MAX, MIN, COUNTA, and NETWORKDAYS. Understand syntax, arguments, and how to insert functions using AutoSum and the Function Library.

By the end of this lesson you can

  • Use SUM, AVERAGE, COUNT, MIN, and MAX correctly
  • Explain what COUNT counts and how COUNTA differs
  • Use IF to return different values based on a condition
  • Read a function's arguments from the ScreenTip while typing

Video

Watch the lesson video, then complete the reading and challenge.

Lesson Notes

Read through the key concepts before you try the challenge.

Functions are named calculations that survive editing

On the job

You total supply costs at Lakeside Medical Associates.

You write =E2+E3+E4+E5+E6 to total five items. A sixth item is added on a new row inside that range, and the total silently ignores it. The number looks entirely reasonable, so the omission is never questioned.

Your task: Use range-based functions, which absorb inserted rows instead of ignoring them.

=SUM(E2:E6) refers to a region rather than a list of cells. Insert a row inside that region and Excel expands the range automatically, so the new value is included. This is the practical reason to prefer functions over chains of arithmetic, quite apart from the typing they save.

FunctionReturnsNote
=SUM(A1:A10)The totalIgnores text and empty cells
=AVERAGE(A1:A10)The meanSkips empty cells but includes zeros — these give different answers
=COUNT(A1:A10)How many cells hold numbersText and blanks are not counted
=COUNTA(A1:A10)How many cells are not emptyCounts text as well as numbers
=MIN / =MAX(A1:A10)The smallest or largest valueUseful for range checks on entered data
=IF(A1>100,"Over","OK")One of two values, by conditionThe basis of every status column
The functions worth knowing first
AVERAGE ignores empty cells but includes zeros, and the difference matters. Ten items where two are genuinely zero average differently from ten items where two were never filled in. If blanks mean 'not yet recorded,' leave them blank; if they mean zero, enter 0. The distinction changes the answer.
As you type =SUM( Excel shows a ScreenTip listing the arguments, with the current one in bold. Reading it is faster than looking a function up, and clicking an argument name in the tip selects that part of the formula.

What Is a Function?

A function is a predefined formula that performs calculations using specific values in a particular order.

Excel includes many common functions that can quickly calculate totals, averages, counts, maximum values, and minimum values.

Basic SUM function example showing equals sign, function name, and argument

Understanding Function Syntax

Functions must follow proper syntax: an equals sign (=), the function name, and one or more arguments inside parentheses.

Example: =SUM(A1:A20)

Arguments can refer to individual cells or cell ranges. Multiple arguments are separated by commas.

AVERAGE function example with cell range argument

Using the AutoSum Command

The AutoSum command automatically inserts common functions such as SUM, AVERAGE, COUNT, MAX, and MIN.

AutoSum command dropdown on Ribbon

Select the cell that will contain the function, choose AutoSum, and Excel will automatically suggest a range.

SUM function inserted and calculated

You can also press Alt + = as a shortcut to quickly insert AutoSum.

Entering a Function Manually

If you know the function name, you can type it directly.

Click a cell, type =AVERAGE, and enter the range inside parentheses.

Typing AVERAGE function manually
Selecting range C3:C9 inside AVERAGE
AVERAGE result displayed

The Function Library

The Function Library on the Formulas tab organizes functions into categories such as Financial, Logical, Text, Date & Time, Lookup & Reference, and Math & Trig.

Formulas tab showing Function Library group
Function Library categories dropdown

Using COUNTA

COUNTA counts the number of non-empty cells in a range. Unlike COUNT, it counts text as well as numbers.

Selecting COUNTA from Function Library
Function Arguments dialog for COUNTA
COUNTA formula result

Using Insert Function & NETWORKDAYS

The Insert Function command allows you to search for functions using keywords.

Insert Function button
Insert Function search dialog

In this example, we use NETWORKDAYS to calculate business days between two dates.

NETWORKDAYS function arguments completed

Knowledge Check

Check your understanding

Which function adds all values in the range A1:A10?

Practice File

Download this file and follow along with the lesson.

Challenge

Apply what you've learned in this lesson.

Complete the following tasks using the practice workbook:

  1. Download the Functions practice workbook.
  2. Click the Challenge worksheet tab.
  3. In cell F3, insert a function to calculate the average of the four scores in cells B3:E3.
  4. Use the fill handle to copy the function from F3 to cells F4:F17.
  5. In cell B18, use AutoSum to calculate the lowest score in B3:B17.
  6. In cell B19, use the Function Library (More Functions > Statistical) to calculate the median of B3:B17.
  7. In cell B20, create a function to calculate the highest score in B3:B17.
  8. Copy the functions in B18:B20 across to C18:F20 using the fill handle.
Final practice result shown in worksheet

Finished this lesson?

Progress is saved in this browser only. It is not a grade — official progress lives in Brightspace.