Topics in this sectionFormula and Functions12 topics
Entering Functions in a Spreadsheet
A function is a ready-made formula that performs a specific calculation. While a formula is something you type entirely yourself, a function uses a predefined name (like SUM or AVERAGE) followed by information in brackets telling Excel which cells to work with. Knowing how to enter functions lets you calculate totals, averages, and other results quickly and accurately.
A formula is an expression you type that uses cell references, numbers, and mathematical operators. For example, if you type =C3*1.25 in a cell, you are writing a formula that multiplies whatever is in cell C3 by 1.25.
A function is a shortcut. Instead of writing out the full calculation, you use a built-in name that Excel recognises. For instance, =SUM(A1:A10) adds up all the values in cells A1 through A10. The word SUM is the function name, and A1:A10 tells Excel which cells to add.
When you type a function, you must follow the correct order — this is called syntax. The basic pattern is:
=FunctionName(argument)
The argument is the piece of information the function needs, such as a cell range (A1:A10) or a single cell reference.
You can enter a function in two ways: by typing it directly or by using the Function Wizard.
Typing a Function Directly
- Click on the cell where you want the answer to appear.
- Type an equals sign = to show you are starting a calculation.
- Type the function name, such as SUM, AVERAGE, MAX, or MIN.
- Open a bracket, type the cell range or individual cell references, then close the bracket.
- Press Enter.
For example, to add the values in cells B2 through B10, you would type:
=SUM(B2:B10)
And press Enter. Excel will display the total.
Using the Function Wizard
If you are not sure how to write a function, the Function Wizard helps you choose the right one and builds the formula for you.
- Click on the cell where you want the answer.
- Click the Insert Function button (often labelled fx near the formula bar at the top of the screen).
- A dialog box appears. Type a brief description of what you want to do — for example, "add numbers" or "find average" — and click Go.
- Select the function you need from the list and click OK.
- Another box appears where you can type or select the cells you want to use.
- Click OK again, and Excel inserts the function into your cell.
The Function Wizard is especially useful when you are learning new functions or when the function requires several arguments.
Once you have entered a function in one cell, you can copy it to other cells to perform the same calculation on different rows or columns.
- Click the cell that contains the function.
- Move your cursor to the bottom-right corner of that cell — the cursor will change to a small black cross.
- Click and drag down (or across) to cover the cells where you want the function to apply.
- Release the mouse. Excel automatically adjusts the cell references for each new position.
This is useful when you have a list of items — for example, different products in a market stall — and you need to calculate the total sales for each one.
Sometimes Excel cannot calculate your function. When this happens, the cell shows an error code that tells you what went wrong.
#VALUE! appears when you use the wrong type of data — for example, if you try to add a cell that contains text instead of a number.
#NAME? appears when Excel does not recognise the function name, usually because it was misspelled. Make sure you type SUM not sum, and check that brackets are correct.
#DIV/0! appears when you try to divide by zero or by an empty cell. Excel treats an empty cell as zero, so dividing by it causes this error.
#REF! appears when a cell reference is no longer valid — for example, if you deleted a column or row that the function was using.
#N/A appears when a lookup function cannot find the value you are searching for.
#NUM! appears when a calculation produces a number that is too large or too small for Excel to handle.
#NULL! appears when you use the intersection operator incorrectly — this happens when you ask Excel to find cells that two ranges share, but those ranges do not overlap.
If you see ######## in a cell, Excel has calculated the formula successfully, but the cell is too narrow to display the result. Widen the column or change the number format to see the value.
Imagine you are helping a shopkeeper in Juba track the cost of sorghum sacks. The spreadsheet has:
- Column A: Item names
- Column B: Quantity purchased
- Column C: Cost per sack (in SSP)
To find the total cost for each item, you would enter a function in column D:
- In cell D2, type: =B2*C2
- Press Enter. The total cost for the first item appears.
- Copy the formula down to the other rows by dragging the corner.
To find the overall total spent, click on the cell where you want the sum and type:
=SUM(D2:D10)
This uses the SUM function to add all values from D2 to D10.
To find the average cost per sack, type:
=AVERAGE(C2:C10)
Excel will calculate the average automatically.
In everyday life, shopkeepers in markets across Juba, Wau, and Malakal use spreadsheet functions to track their inventory and profits. For example, a dura (sorghum) trader can enter the quantity sold and the price per bag in columns, then use the SUM function to calculate total revenue for the day, helping them know whether they have made a profit or loss without doing mental arithmetic. Small business owners and county school administrators also use these functions to manage budgets and calculate averages for student test scores.
Question
What is the correct syntax for entering a function in a spreadsheet cell?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet