# Formulas & Functions

PowerTable features an Excel-like formula engine that supports over 50 functions, including logical, Boolean, date, math, and others. The formula editor is intuitive and user-friendly and offers dynamic help suggestions regarding syntax and examples. It includes features like auto-complete and multi-line support to better assist users in creating and troubleshooting formulas.

Formulas are used while inserting a formula column or to set up data-derived default values.

A formula can contain functions, expressions, references, and constants.

1. A function takes in one or more values and performs a defined operation to return a result. Every function is defined with a keyword and a specific syntax that is to be followed.
2. Expressions are references with logical or mathematical operators that specify the operation to be performed.
3. References are the cell names containing values.
4. Constant refers to a value or a number that does not change.

## Formula Column

{% hint style="info" %}
Please refer to [this section](/explore-powertable/working-with-powertable/column-setup/add-formula-column.md) to understand the steps to insert a formula column.
{% endhint %}

While adding a formula column to your table, you can just start typing in the required formulas in the formula box. As you start typing, a help menu appears, allowing you to autocomplete your formulas.&#x20;

To get suggestions about formulas or insert them, click the **Functions** tab. The **Reference** tab allows you to add columns and refer to them in your formula.

<figure><img src="/files/w7i5KJt4JKX1DmqOHVpa" alt=""><figcaption><p>Adding formula in the formula column</p></figcaption></figure>

## Default Value

Default values automatically populate columns with predefined data when none is provided, helping maintain data consistency, prevent nulls, and simplify data entry. You can manually enter static data or set up a formula for a dynamic default value, whose value is derived and thus dependent on existing data.&#x20;

<figure><img src="/files/9jY6zM2c5cMBCcfhLQOQ" alt=""><figcaption><p>Adding formula for default value</p></figcaption></figure>

PowerTable formulas can be classified into:

* [Conditional Statements](/explore-powertable/formulas-and-functions/conditional-statements.md)
* [Logical Functions](/explore-powertable/formulas-and-functions/logical-functions.md)
* [Math Functions](/explore-powertable/formulas-and-functions/math-functions.md)
* [Text Formatting Functions](/explore-powertable/formulas-and-functions/text-formatting-functions.md)
* Date functions
* Other Operators


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powertable.com/explore-powertable/formulas-and-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
