#
Working with Formulas

Tabulations frequently contain data from various queries, necessitating the merging of information from these diverse sources. Formulas play a vital role in tabulations as they enable you to perform calculations, retrieve specific data, manipulate cell contents, evaluate conditions, and accomplish much more.

## Create a formula using cell references

- Select the cell where you want to enter the formula.
- Type = (equal sign) to start the formula.
- Enter the formula by typing the first cell reference. For example, to add up the values in cells A1 and A2, type A1.
- Enter the operator. +
- Select the second cell, or type A2
- Press Enter to apply the formula to the selected cell.
- The result of the formula will be displayed in the cell.
- The formula is displayed in the formula bar

## Create a formula using a built-in function

- Select the cell where you want to enter the formula.
- Type = (equal sign) to start the formula.
- Enter the function. For example, to calculate the average of the values in cells B2 to D2, type Average
- Type an opening round bracket: (
- Select the cells B2 to D2
- Type a closing round bracket )
- Press Enter to apply the formula to the selected cell.
- The result of the formula is displayed in the cell.
- The formula is displayed in the formula bar

## Create a formula using AI

Describe the formula that you want to add to your spreadsheet using natural language and allow the LLM to create a formula for you.

Note: You can only use AI to generate formulas in your spreadsheet if your administrator has enabled the **Generative AI Features** in AI Settings in the Admin Console.

From your Tabulate spreadsheet:

- Select the cell (green arrow) where you want to create the formula.
- Click the
**Gen AI**button (red arrow) to switch the formula bar into AI mode. - Describe the formula that you want to create in the formula bar (blue arrow) using natural language.
- Hit
**Enter**to send the natural language description to the LLM and create the described formula.

Once the action is complete, 1) the result of the formula is displayed in the cell (green arrow, below) and 2) the formula that was created by the LLM is shown in the formula bar: