Apple Numbers formulas help you calculate totals, compare values, clean text, and automate spreadsheet work on Mac, iPhone, and iPad. This guide shows how to insert and edit formulas, then walks through practical examples you can reuse right away.
If you are new to spreadsheets, start with the Mac and iOS steps below. If you already know the basics, jump to the formula examples for comparisons, TRIM, SUM, AVERAGE, IF, and filling a formula down a column.
How to Add Formulas in Apple Numbers on Mac
Use these steps to insert an Apple Numbers formula on Mac and return a calculated result in a cell:
Step 1: Select the cell where you want the formula result to appear.

Step 2: Go to Insert > Formula in the menu bar, or use the Insert button on the toolbar and choose Formula.

Step 3: Choose the function you need, or type a formula that starts with an equals sign, such as =SUM(A2:A10).
Step 4: Press Return (Enter) to calculate the result.

Numbers often suggests a cell range for you. You can drag the selection handles or edit the cell references if the suggested range is wrong.
Insert and Edit Formulas in Numbers on iPhone and iPad
You can add and edit Apple Numbers formulas on iPhone or iPad without a Mac. Follow these steps:
Select the cell that should show the formula result.
Tap Cell at the bottom of the screen.
Choose New Formula.
Type the formula manually, or tap the Function (fx) button to browse common functions.
Select a function from the list so Numbers inserts it into the formula field.
Select the cells you want to include, or enter cell references in the value field.
Tap the green checkmark to apply the formula.
To edit later, select the cell again, open the formula, update the function or range, and confirm with the checkmark.
Useful Apple Numbers Formulas and Functions
Here are practical Apple Numbers formulas for everyday data work. Each example includes what it does and how to enter it.
1. Compare values with operators
Comparison formulas return TRUE or FALSE. Use them to check whether one value is greater than, less than, equal to, or not equal to another.
Example: check whether this January's sales are greater than or equal to last year's sales.
Select the result cell and open the Formula Editor.
Click the first cell in the comparison.
Type a comparison operator such as
>=(greater than or equal to),>,<<>,<=<>,=, or<>.Click the second cell.
Press Return or tap the checkmark.
If the formula cell shows TRUE, this year's January sales are greater than or equal to last year's figure.
2. Remove extra spaces with TRIM
Imported data often includes extra spaces in names or labels. That can break mail merges and lookups. Use TRIM to clean them in one step.
Select the output cell, then open the Formula Editor and Functions Browser.
Search for TRIM and insert it.
For the source-string argument, select the cell that contains the messy text.
Confirm with the checkmark. Example:
=TRIM(A2).
3. Add numbers with SUM
Use SUM to total a column or range. Example: =SUM(B2:B20) adds every value in B2 through B20.
4. Find averages with AVERAGE
Use AVERAGE for mean values across a range. Example: =AVERAGE(C2:C20).
5. Make decisions with IF
Use IF when the result should change based on a condition. Example: =IF(D2>=100,"Met target","Below target").
6. Count matching values with COUNTIF
Use COUNTIF to count cells that meet a rule. Example: =COUNTIF(E2:E50,"Paid") counts how many rows are marked Paid.
7. Apply a formula to an entire column
After you enter a formula in the first data row, drag the fill handle down the column, or copy the cell and paste it into the rows below. Numbers adjusts relative references automatically, so =A2*B2 becomes =A3*B3 on the next row.
Best Free Alternative to Numbers: WPS Office
If you need spreadsheet formulas across Windows, Mac, Linux, and mobile, WPS Office is a free alternative to Apple Numbers. Spreadsheets in WPS support common formula patterns similar to Excel, including SUM, AVERAGE, IF, and COUNTIF, and you can open and edit files from multiple sources.
WPS Office also includes Word, Presentation, and PDF tools in one suite, which is useful when your workflow moves between documents, sheets, and shared files.
FAQs
Q1: How do I start a formula in Apple Numbers?
Select a cell and type an equals sign (=), or choose Insert > Formula on Mac / Cell > New Formula on iPhone or iPad. Then add a function or cell references and confirm.
Q2: Why does my Numbers formula show an error?
Common causes include a wrong cell range, text where a number is required, a missing closing parenthesis, or a circular reference. Open the formula, check each argument, and recalculate.
Q3: How can I apply one formula to a whole column in Numbers?
Enter the formula in the first cell, then drag the fill handle down the column or paste the formula into the remaining cells. Relative references update automatically for each row.
Q4: Can I use Apple Numbers formulas on iPhone and iPad?
Yes. Use Cell > New Formula, then type the formula or pick a function with the Function (fx) button. Confirm with the green checkmark when you finish.
Summary
Apple Numbers formulas let you calculate, compare, clean, and summarize data on Mac and iOS. Start with Insert > Formula or Cell > New Formula, then build on examples like comparison operators, TRIM, SUM, AVERAGE, IF, COUNTIF, and column fill.
If you want a free cross-platform spreadsheet option for similar formula work, try WPS Office alongside or instead of Numbers.





