Add or edit formulas

To add and edit formulas, you use the Formula Editor. The Formula Editor has a text field that holds your formula. You can add cell references, operators, functions, or constants to a formula.

Note: In Numbers, you can also use the formula bar to work with formulas.

Add and edit formulas using the Formula Editor

To add formulas using the Formula Editor, you open the Formula Editor and add the elements you want.

Add a function to a formula

  1. In the Formula Editor or formula bar (Numbers), place the insertion point where you want the function added.

  2. Open the Function Browser.

  3. Select a function category.

  4. To add a function, select it and tap or click Insert Function.

  5. In the Formula Editor or formula bar (Numbers), replace each argument placeholder in the inserted function with a value.

Alternatively, you can type a function directly into the text field of the Formula Editor or formula bar (Numbers).

Add concatenation to a formula

The concatenation operator (&) can be used in formulas to concatenate, or join, two or more strings or the contents of two or more cell references.

  1. Place the insertion point in the Formula Editor or formula bar (Numbers) at the point where you want to insert the concatenation.

  2. Add the first string or cell reference to be included in the concatenation.

  3. Type &.

  4. Add the second string or cell reference to be included in the concatenation.

  5. Repeat steps 3 and 4 as many times as needed until all items to be concatenated are included.

Review errors and warnings in formulas

When a formula in a table cell is incomplete, contains invalid cell references, or is otherwise incorrect, or when an import operation creates an error condition in a cell, an icon is displayed in the cell.

Remove a formula from a cell

If you no longer want to use a formula that’s associated with a cell, you can delete it.

For specific instructions on how to accomplish tasks in the app you're using, see the help that accompanies the app. In the macOS apps, look under the Help menu. In the iOS apps, tap the More menu (three dots in the top-right corner), then tap Numbers Help. (If you don’t see Numbers Help, swipe up from the bottom of the controls). In the iCloud apps, click the Question Mark button in the top-right corner.