|
|
|
---
|
|
|
|
title: 'Formula'
|
|
|
|
description: 'This article explains how to create & work with a Formula field.'
|
|
|
|
tags: ['Fields', 'Field types', 'Formula']
|
|
|
|
keywords: ['Fields', 'Field types', 'Formula', 'Create formula field']
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Create a formula field
|
|
|
|
|
|
|
|
1. Click on `+` icon to the right of `Fields header`
|
|
|
|
2. On the dropdown modal, enter the field name (Optional).
|
|
|
|
3. Select the field type as `Formula` from the dropdown.
|
|
|
|
4. Insert required formula
|
|
|
|
5. Click on `Save Field` button.
|
|
|
|
|
|
|
|
![image](/img/v2/fields/types/formula.png)
|
|
|
|
|
|
|
|
:::tip
|
|
|
|
- You can use explicit numerical values/ strings as needed, e.g. `123` (numeric) or `"123"` (string).
|
|
|
|
- You can reference field names in equation with `{}`, e.g. `{field name}`
|
|
|
|
- Nested formula (formula equation referring to another formula field) is supported
|
|
|
|
:::
|
|
|
|
|
|
|
|
:::note
|
|
|
|
Unlike other field types, formula cells cannot be modified by double-clicking since the value is generated based on the formula.
|
|
|
|
<img width="253" alt="image" src="https://user-images.githubusercontent.com/35857179/189109486-4d41f2b7-0a19-46ef-8bb4-a8d1aabd3592.png" />
|
|
|
|
:::
|
|
|
|
|
|
|
|
## Supported formula functions
|
|
|
|
|
|
|
|
- [Numeric and Logical Operators](015.operators.md)
|
|
|
|
- [Numeric Functions](020.numeric-functions.md)
|
|
|
|
- [String Functions](030.string-functions.md)
|
|
|
|
- [Date Functions](040.date-functions.md)
|
|
|
|
- [Conditional Expressions](050.conditional-expressions.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|