What Is a Function in Excel? Arguments Explained
By ExcelReady TeamUpdated 6 min read
The short answer
A function in Excel is a built-in calculation with a name, such as SUM, AVERAGE or IF. You give it inputs called arguments inside brackets, separated by commas, and it returns a result. For example, =SUM(B2:B6) adds the five cells in B2 to B6. Functions are used inside formulas, which always start with an equals sign.
Key takeaways
- A function is a named, ready-made calculation: SUM adds, AVERAGE finds the mean, IF makes a decision.
- Every function has the same shape: =NAME(argument1, argument2, ...).
- Arguments are the inputs. Some are required; ones shown in [square brackets] in the tooltip are optional.
- A formula is anything that starts with =. A function is one tool you can use inside it.
- You can put one function inside another, such as =ROUND(AVERAGE(B2:B6),0).
On this page+
What is a function in Excel? It's a built-in calculation with a name, such as SUM, AVERAGE or IF, that takes inputs and returns a result. Instead of typing =B2+B3+B4+B5+B6, you write =SUM(B2:B6) and Excel does the work. This guide explains the parts of a function, what arguments are, and how to enter and combine functions, using one small table you can type in yourself.
What is a function in Excel?#
A function is a ready-made calculation that Excel already knows how to do. Each one has a name that says what it does: SUM adds, AVERAGE finds the mean, MAX finds the biggest value, and IF chooses between two results.
All examples in this guide use these test scores in A1:B6:
| A | B | |
|---|---|---|
| 1 | Student | Score |
| 2 | Amara | 72 |
| 3 | Ben | 85 |
| 4 | Chloe | 90 |
| 5 | Dmitri | 64 |
| 6 | Esi | 78 |
| Function | What it does | Formula | Result |
|---|---|---|---|
| SUM | Adds numbers | =SUM(B2:B6) | 389 |
| AVERAGE | Finds the mean | =AVERAGE(B2:B6) | 77.8 |
| MAX | Finds the largest | =MAX(B2:B6) | 90 |
| MIN | Finds the smallest | =MIN(B2:B6) | 64 |
| COUNT | Counts cells with numbers | =COUNT(B2:B6) | 5 |
Excel has several hundred functions in categories like Math, Text, Date and Time, Lookup and Logical. You don't need most of them. A handful covers everyday work and most job tests.
Function vs formula: what's the difference?#
A formula is any calculation in a cell that starts with an equals sign. A function is one named tool you can use inside a formula.
=B2-B3is a formula with no function. It uses the minus operator. See how to subtract in Excel.=SUM(B2:B6)is a formula that uses one function.=SUM(B2:B6)/5is a formula that mixes a function and an operator.
Functions save time and avoid mistakes. Adding 500 cells with + is slow and easy to get wrong, but =SUM(B2:B501) is one short formula. If you've never typed a formula before, start with how to write your first Excel formula.
The parts of a function: name, brackets and arguments#
Every function follows the same pattern, called its syntax:
=FUNCTION_NAME(argument1, argument2, ...)| Part | Example | What it means |
|---|---|---|
| Equals sign | = | Tells Excel this is a calculation, not text |
| Name | IF | Which function to run |
| Opening bracket | ( | The inputs start here |
| Arguments | B2>=70, "Pass", "Fail" | The inputs, separated by commas |
| Closing bracket | ) | The inputs end here |
Arguments are the inputs a function needs. SUM needs at least one: the numbers or range to add. IF needs a test, a result for TRUE and a result for FALSE:
=IF(B2>=70,"Pass","Fail")For Amara's 72, this returns Pass. For Dmitri's 64, it returns Fail. The IF function guide covers each argument in detail.
Some arguments are optional. When you type a function, Excel shows a tooltip, and optional arguments appear in square brackets, such as SUM(number1, [number2], ...). You can leave those out.
In some countries, Excel uses a semicolon between arguments instead of a comma: =IF(B2>=70;"Pass";"Fail"). This depends on your regional settings. The function works the same way.
What kinds of arguments can a function take?#
An argument can be almost any value Excel understands. The most common types are:
- A number:
=ROUND(77.8,0)returns 78. - A cell or range:
=SUM(B2:B6). A range is a block of cells, written as first cell, colon, last cell. - Text in double quotes:
"Pass". Without quotes, Excel thinks Pass is a name and shows #NAME?. - A logical test:
B2>=70, which is either TRUE or FALSE. - Another function:
=ROUND(AVERAGE(B2:B6),0). This is called nesting.
How to enter a function in Excel#
You can type a function, pick it from a list, or let Excel write it.
- Type it. Click a cell, type
=SU, and Excel shows a list of matching names. Press Tab to pick SUM, then type the arguments and the closing bracket. - Use AutoSum. Click the cell below a column of numbers and press Alt+= on Windows or ⌘+Shift+T on a Mac. Excel writes
=SUM(...)and guesses the range. Press Enter if the range is right. The SUM function guide shows more ways to add. - Use Insert Function. Click the fx button next to the formula bar, or press Shift+F3. A window lets you search for a function and fills in each argument in its own box.
While you type, the tooltip under the cell shows the argument you're on in bold. It's the fastest way to remember the order.
How to put one function inside another#
You can use a function as an argument of another function. This is called nesting. Excel works from the inside out.
=ROUND(AVERAGE(B2:B6),0)First AVERAGE returns 77.8. Then ROUND takes 77.8 as its first argument and rounds it to 0 decimal places, giving 78. Each function needs its own pair of brackets, so count them: two opening, two closing.
Here is a nested IF that adds a third result:
=IF(B2>=85,"Merit",IF(B2>=70,"Pass","Fail"))Ben's 85 returns Merit, Amara's 72 returns Pass and Dmitri's 64 returns Fail. Functions like these are the base of real work such as an Excel timesheet and of most questions in a basic Excel test for employment.
Common mistakes when using functions#
Most function errors come from typing, not from the function itself:
- No equals sign.
SUM(B2:B6)without=is just text. - A misspelled name.
=SUMM(B2:B6)returns #NAME?. - Text without quotes.
=IF(B2>=70,Pass,Fail)returns #NAME?. - Missing brackets. Excel may offer a fix, but check it matches what you meant.
- Arguments in the wrong order. In IF, the test comes first. Use the tooltip to check.
Practise it#
Functions make sense once you've typed a few yourself. Practise your first formulas in a live spreadsheet: you start with =, build simple calculations and see them recalculate. Then move on to the SUM and AutoSum lesson, where every answer is checked instantly. For more short tasks, try these Excel exercises for beginners, or start with the nested ROUND and AVERAGE exercise on this page.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
In B7, find the average score rounded to a whole number. Nest AVERAGE inside ROUND: =ROUND(AVERAGE(B2:B6),0).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Score | |||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | Average | |||
| 8 | ||||
| 9 | ||||
| 10 |
Tip: AVERAGE(B2:B6) is the first argument of ROUND. The second argument, 0, means no decimal places.
Practise this in a lesson
Frequently asked questions
What is the difference between a formula and a function in Excel?
A formula is any calculation that starts with an equals sign, such as =B2-C2. A function is a named, built-in calculation such as SUM that you use inside a formula. =SUM(B2:B6) is a formula that uses one function.
What are arguments in an Excel function?
Arguments are the inputs a function needs to do its job. In =IF(B2>=70,"Pass","Fail"), the three arguments are the test, the result if true and the result if false.
How many functions does Excel have?
Excel has several hundred functions, grouped into categories such as Math, Statistical, Text, Date and Time, Lookup and Logical. Most everyday work uses only a few dozen of them.
Why does Excel use semicolons instead of commas in functions?
In some regional settings, the comma is the decimal separator, so Excel uses semicolons between arguments instead: =IF(B2>=70;"Pass";"Fail"). The function works the same way.
What are the most common Excel functions for beginners?
Start with SUM, AVERAGE, MIN, MAX, COUNT, ROUND and IF. Then learn COUNTIF, SUMIF and a lookup function such as VLOOKUP or XLOOKUP.