Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.
Formula fields calculate results from other fields in the same record. They can handle math operations, text joining, date calculations, and conditional logic. Use them to turn repeated calculation rules into fields.
Use Cases
Scenario
Good for
Automatic calculation
Calculate total price, profit, or score from quantity, unit price, discount, and other fields
Text processing
Join text, extract content, or parse information by delimiter
Date processing
Calculate date differences, check time ranges, or generate future dates
Conditional logic
Return different results based on conditions, such as status, hints, or categories
Formula Basics
Data Types
Before writing a formula, confirm the types of the fields used in the calculation. Different types support different operations and functions.
Type
Description
Common uses
Number
Integers or decimals
Arithmetic, rollups, comparisons
Text
String values
Joining, extracting, replacing, splitting
Date
Date or date-time values
Calculating intervals, comparing dates
Boolean
TRUE or FALSE
Conditions and logical operations
Reference Fields
In a formula, reference another field by its field name. Wrap the field name in {} and keep it consistent with the actual field name:
{Unit price} * {Quantity}
Operators
Operator
Use
+
Calculates the sum of numbers, or joins strings
-
Calculates the difference between numbers
*
Calculates the product of numbers
/
Calculates the quotient of numbers
%
Calculates the remainder
Functions and Expressions
Common Functions
Functions perform specific operations. For example, SUM calculates a total, LEFT extracts characters from the start of text, TEXTBEFORE extracts text before a delimiter, and TEXTSPLIT splits text by a delimiter.See the formula cheat sheet for more functions.
Text Processing
Operation
Function examples
Description
Join text
&, CONCATENATE
Joins two or more text values
Extract text
LEFT, RIGHT, MID, TEXTBEFORE
Extracts part of a string
Split text
TEXTSPLIT
Splits text into multiple values by delimiter
Logical Conditions
Use the IF function to return different values based on a condition:
IF(condition, value_if_true, value_if_false)
When checking whether a field is empty, compare it with BLANK(). For example, IF({Weight}=BLANK(), 1, 2) returns 1 when a number field is empty, and 2 otherwise.
Complex Expressions
A complex formula can include multiple functions, field references, and operators. Use parentheses to control calculation order:
({Unit price} * {Quantity}) * (1 - {Discount})
Result Display and Maintenance
Formatting and Interactive Display
Formula results can also use formatting and interactive display settings, such as percentage, progress bar, or icon styles. Available options depend on the formula result type.
Debugging and Optimization
Check data types: Confirm that operations and functions use the correct data types.
Verify field references: Confirm that field names are written correctly.
Test step by step: Break complex formulas into smaller parts and test them separately.
Avoid repeated calculations: If the same calculation is used in several places, consider storing the result in a separate field.
Complexity Limits
When you save a formula, Teable first expands it into the structure that actually takes part in the computation, then checks the size of that structure. If it exceeds a limit, the save is rejected and the message names what went over and the limit that applies — the number of expanded nodes, the nesting depth of the computation, the depth of references between formulas — and the change is not saved.A short formula can still go over: when one formula references another, and that one references a third, the expanded structure grows quickly. Storing intermediate results in their own fields and cutting repeated references and complex branches usually brings it back under the limit.If a saved formula hits a limit while computing, the field reports Formula compilation exceeds the computation limit; results have not been updated in computed field activity. Once the formula is simpler, the next write recomputes the field.
Last modified on October 21, 2026
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Teable","colors":{"primary":"#131415","light":"#131415","dark":"#F9FAFB"},"logo":{"light":"https://mintcdn.com/teablecn/Sov59EnEPMakaGyj/images/teable-logo-full.png?fit=max\u0026auto=format\u0026n=Sov59EnEPMakaGyj\u0026q=85\u0026s=24e1fe49258a9a8f76eaec5792623926","dark":"https://mintcdn.com/teablecn/Sov59EnEPMakaGyj/images/teable-logo-full-dark.png?fit=max\u0026auto=format\u0026n=Sov59EnEPMakaGyj\u0026q=85\u0026s=be076104208b417182461b52d697a124","href":"https://teable.ai"},"favicon":"https://mintcdn.com/teablecn/MGUqMJ8iafwbPo_j/images/teable-logo.png?fit=max\u0026auto=format\u0026n=MGUqMJ8iafwbPo_j\u0026q=85\u0026s=bd76b377e5d2b5c43bd18f20ddb0c6ad","seo":{"metatags":{"og:image":"https://teable.ai/assets/images/og-image.png","twitter:site":"@teableai","twitter:card":"summary_large_image","canonical":"https://help.teable.ai","description":"Teable is an AI-powered database and app builder. Build apps, automate workflows, and manage data with ease.","keywords":"database, app builder, AI, no-code, low-code, Airtable alternative, PostgreSQL, automation"},"indexing":"all"},"integrations":{"ga4":{"measurementId":"G-LQ8H9TEDRD"}},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","banner":{"content":"🚀 Share your projects as templates. See our [changelog](/en/changelog#nov-20-2026) for details.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Support"}]},"href":"en"},{"language":"zh","banner":{"content":"🚀 把项目做成模板分享。查看[更新日志](/zh/changelog#2026-11-20)了解详情。","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"支持"}]},"href":"zh"},{"language":"ru","banner":{"content":"🚀 Делитесь проектами как шаблонами. Подробнее в [журнале изменений](/ru/changelog#20-ноября-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Поддержка"}]},"href":"ru"},{"language":"de","banner":{"content":"🚀 Teile deine Projekte als Vorlagen. Details im [Änderungsprotokoll](/de/changelog#20-november-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Support"}]},"href":"de"},{"language":"fr","banner":{"content":"🚀 Partagez vos projets sous forme de modèles. Consultez notre [journal des modifications](/fr/changelog#20-novembre-2026) pour en savoir plus.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Assistance"}]},"href":"fr"},{"language":"es","banner":{"content":"🚀 Comparte tus proyectos como plantillas. Consulta el [registro de cambios](/es/changelog#20-de-noviembre-de-2026) para más detalles.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Soporte"}]},"href":"es"},{"language":"it","banner":{"content":"🚀 Condividi i tuoi progetti come modelli. Scopri i dettagli nel [registro delle modifiche](/it/changelog#20-novembre-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Supporto"}]},"href":"it"},{"language":"ja","banner":{"content":"🚀 プロジェクトをテンプレートとして共有。詳しくは[更新履歴](/ja/changelog#2026年11月20日)をご覧ください。","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"サポート"}]},"href":"ja"},{"language":"tr","banner":{"content":"🚀 Projelerinizi şablon olarak paylaşın. Ayrıntılar için [değişiklik günlüğüne](/tr/changelog#20-kasım-2026) bakın.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Destek"}]},"href":"tr"},{"language":"uk","banner":{"content":"🚀 Діліться проєктами як шаблонами. Докладніше в [журналі змін](/uk/changelog#20-листопада-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Підтримка"}]},"href":"uk"},{"language":"ar","banner":{"content":"🚀 شارك مشاريعك كقوالب. راجع [سجل التغييرات](/ar/changelog#20-نوفمبر-2026) لمعرفة التفاصيل.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"الدعم"}]},"href":"ar"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"teablecn","hasAudioNarration":false,"actualSubdomain":"teablecn","customDomains":["help.teable.ai"],"gitSource":{"type":"github","owner":"teableio","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b041e0b3ca2a55c0069bca7","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"ar","tag":"واجهة API","count":737},{"language":"de","tag":"API","count":737},{"language":"en","tag":"API","count":737},{"language":"es","tag":"API","count":737},{"language":"fr","tag":"API","count":737},{"language":"it","tag":"API","count":737},{"language":"ja","tag":"API","count":737},{"language":"ru","tag":"API","count":737},{"language":"tr","tag":"API","count":737},{"language":"uk","tag":"API","count":737},{"language":"zh","tag":"API 文档","count":737},{"language":"ar","tag":"مرجع واجهة API","count":726},{"language":"de","tag":"API-Referenz","count":726},{"language":"en","tag":"API Reference","count":726},{"language":"es","tag":"Referencia de la API","count":726},{"language":"fr","tag":"Référence de l’API","count":726},{"language":"it","tag":"Riferimento API","count":726},{"language":"ja","tag":"APIリファレンス","count":726},{"language":"ru","tag":"Справочник API","count":726},{"language":"tr","tag":"API Referansı","count":726},{"language":"uk","tag":"Довідник API","count":726},{"language":"zh","tag":"API Reference","count":726},{"language":"ar","tag":"admin","count":145},{"language":"de","tag":"admin","count":145},{"language":"en","tag":"admin","count":145},{"language":"es","tag":"admin","count":145},{"language":"fr","tag":"admin","count":145},{"language":"it","tag":"admin","count":145},{"language":"ja","tag":"admin","count":145},{"language":"ru","tag":"admin","count":145},{"language":"tr","tag":"admin","count":145},{"language":"uk","tag":"admin","count":145},{"language":"zh","tag":"admin","count":145},{"language":"zh","tag":"功能文档","count":120},{"language":"ar","tag":"الوثائق","count":118},{"language":"de","tag":"Dokumentation","count":118},{"language":"en","tag":"Docs","count":118},{"language":"es","tag":"Documentación","count":118},{"language":"fr","tag":"Documentation","count":118},{"language":"it","tag":"Documentazione","count":118},{"language":"ja","tag":"ドキュメント","count":118},{"language":"ru","tag":"Документация","count":118},{"language":"tr","tag":"Dokümanlar","count":118},{"language":"uk","tag":"Документація","count":118},{"language":"ar","tag":"المشروع","count":45},{"language":"ar","tag":"space","count":45},{"language":"de","tag":"Projekt","count":45},{"language":"de","tag":"space","count":45},{"language":"en","tag":"Project","count":45},{"language":"en","tag":"space","count":45},{"language":"es","tag":"Proyecto","count":45},{"language":"es","tag":"space","count":45},{"language":"fr","tag":"Projet","count":45},{"language":"fr","tag":"space","count":45},{"language":"it","tag":"Progetto","count":45},{"language":"it","tag":"space","count":45},{"language":"ja","tag":"プロジェクト","count":45},{"language":"ja","tag":"space","count":45},{"language":"ru","tag":"Проект","count":45},{"language":"ru","tag":"space","count":45},{"language":"tr","tag":"Proje","count":45},{"language":"tr","tag":"space","count":45},{"language":"uk","tag":"Проєкт","count":45},{"language":"uk","tag":"space","count":45},{"language":"zh","tag":"项目","count":45},{"language":"zh","tag":"space","count":45},{"language":"ar","tag":"project","count":39},{"language":"de","tag":"project","count":39},{"language":"en","tag":"project","count":39},{"language":"es","tag":"project","count":39},{"language":"fr","tag":"project","count":39},{"language":"it","tag":"project","count":39},{"language":"ja","tag":"project","count":39},{"language":"ru","tag":"project","count":39},{"language":"tr","tag":"project","count":39},{"language":"uk","tag":"project","count":39},{"language":"zh","tag":"project","count":39},{"language":"tr","tag":"Alan","count":35},{"language":"ar","tag":"الأتمتة","count":34},{"language":"de","tag":"Automatisierung","count":34},{"language":"en","tag":"Automation","count":34},{"language":"es","tag":"Automatización","count":34},{"language":"fr","tag":"Automatisation","count":34},{"language":"it","tag":"Automazione","count":34},{"language":"ja","tag":"オートメーション","count":34},{"language":"ru","tag":"Автоматизация","count":34},{"language":"tr","tag":"Otomasyon","count":34},{"language":"uk","tag":"Автоматизація","count":34},{"language":"zh","tag":"自动化","count":34},{"language":"ar","tag":"الحقل","count":30},{"language":"ar","tag":"automation","count":30},{"language":"de","tag":"Feld","count":30},{"language":"de","tag":"automation","count":30},{"language":"en","tag":"Field","count":30},{"language":"en","tag":"automation","count":30},{"language":"es","tag":"Campo","count":30},{"language":"es","tag":"automation","count":30},{"language":"fr","tag":"Champ","count":30},{"language":"fr","tag":"automation","count":30},{"language":"it","tag":"Campo","count":30},{"language":"it","tag":"automation","count":30},{"language":"ja","tag":"フィールド","count":30},{"language":"ja","tag":"automation","count":30},{"language":"ru","tag":"Поле","count":30},{"language":"ru","tag":"automation","count":30},{"language":"tr","tag":"automation","count":30},{"language":"uk","tag":"Поле","count":30},{"language":"uk","tag":"automation","count":30},{"language":"zh","tag":"字段","count":30},{"language":"zh","tag":"automation","count":30}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".nav-logo{width:108px;height:28px;object-fit:contain}[data-continuous-changelog]>[data-changelog-footer],[data-changelog-year]>a{display:none!important}.changelog-year summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:0.375rem 1rem;font-size:0.875rem;border-radius:0.75rem}.changelog-year summary::-webkit-details-marker{display:none}.changelog-year summary::marker{content:\"\"}.changelog-year summary svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}.changelog-year[open] summary svg{transform:rotate(90deg)}.changelog-year summary,.changelog-year a{color:#374151}.dark .changelog-year summary,.dark .changelog-year a{color:#9ca3af}.changelog-year summary:hover,.changelog-year a:hover{color:#111827}.dark .changelog-year summary:hover,.dark .changelog-year a:hover{color:#d1d5db}.changelog-year summary:focus-visible,.changelog-year a:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.changelog-year ul{list-style:none;padding:0;margin:0}.changelog-year a{display:block;margin-block:0.125rem;padding:0.375rem 1rem 0.375rem 2rem;border-radius:0.75rem;font-size:0.875rem}.changelog-year a:hover,.changelog-year summary:hover{background:rgb(156 163 175 / 8%)}.changelog-year a[aria-current]{color:rgb(var(--primary));background:rgb(var(--primary) / 10%);text-shadow:-0.2px 0 0 currentColor, 0.2px 0 0 currentColor}.changelog-year a[aria-busy]{opacity:0.5}.changelog-next-month{display:block;padding-block:2rem}.changelog-next-month[hidden]{display:none}.update-container{scroll-margin-top:180px}.update-container[hidden],.toc-item[hidden]{display:none!important}.changelog-title-anchor{display:block;scroll-margin-top:180px}#content[data-continuous-changelog]{display:flex;flex-direction:column}#changelog-month-stream{display:contents}.changelog-next-month{order:1}.update-container>div:first-child{display:none!important}.update-container>div:has(>[data-component-part=\"update-content\"]){overflow:visible;min-width:0}#content .changelog-heading-link{color:inherit;font:inherit;text-decoration:none;border:0}#content .changelog-heading-link:focus-visible{outline:2px solid currentColor;outline-offset:4px}:has(>svg[style*=\"arrow-left-from-line\"]){display:none!important}.eyebrow{display:none!important}.docs-card-link{display:block;color:inherit!important;text-decoration:none!important}.docs-card-link .card{cursor:pointer}.docs-card-link:hover .card,.docs-card-link:focus-visible .card{border-color:rgb(var(--primary))!important}#header:has(~#content[data-page-href*=\"/changelog\"]) #page-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}#header:has(~#content[data-page-href*=\"/changelog\"]){position:relative;height:0!important;min-height:0!important;margin:0!important;padding:0!important}#header:has(~#content[data-page-href*=\"/changelog\"])>*{margin:0!important}#header:has(~#content[data-page-href*=\"/changelog\"]) .prose{display:none}#header:has(~#content[data-page-href*=\"/changelog\"]) #page-context-menu{position:absolute!important;right:0;top:0;z-index:10}#content[data-page-href*=\"/changelog\"]{margin-top:0!important}#content[data-page-href*=\"/changelog\"]>.update-container:first-of-type{padding-top:0!important}#content[data-page-href*=\"/changelog\"] [data-component-part=\"update-content\"]>h2:first-of-type{font-size:2rem;line-height:1.25;font-weight:700;letter-spacing:-0.025em;margin-top:0;margin-bottom:1.25rem;padding-inline-end:2.5rem}#content[data-page-href*=\"/changelog\"] [data-component-part=\"update-content\"]>h3{font-size:1.5rem;line-height:1.4;font-weight:600}@media (width \u003c 640px){#content[data-page-href*=\"/changelog\"] [data-component-part=\"update-content\"]>h2:first-of-type{font-size:1.75rem}}html:not(.dark){--primary: 19 20 21;--primary-light: 19 20 21;--primary-dark: 19 20 21}.dark{--primary: 249 250 251;--primary-light: 249 250 251;--primary-dark: 249 250 251}#banner{background:rgb(var(--primary))!important}@layer utilities{html:not(.dark) #banner,html:not(.dark) #banner *{color:rgb(249, 250, 251)!important}html:not(.dark) #banner a{color:rgb(249, 250, 251)!important;text-decoration-color:rgba(249, 250, 251, 0.7)!important}.dark #banner,.dark #banner *{color:rgb(19, 20, 21)!important}.dark #banner a{color:rgb(19, 20, 21)!important;text-decoration-color:rgba(19, 20, 21, 0.35)!important}}[data-component-part=\"update-label\"]{background:rgba(17, 17, 17, 0.08)!important;color:#111111!important;border:1px solid rgba(17, 17, 17, 0.18)}.dark [data-component-part=\"update-label\"]{background:rgba(255, 255, 255, 0.1)!important;color:#f3f4f6!important;border-color:rgba(255, 255, 255, 0.25)}html[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-changelog-active=\"true\"]>a,html[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-active]>a,html[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-active-deepest]>a{color:rgb(var(--primary))!important;font-weight:600}html[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-changelog-active=\"true\"]::before,html[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-active]::before,html[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-active-deepest]::before{content:\"\";position:absolute;left:-12px;top:6px;bottom:6px;width:3px;border-radius:999px;background:rgb(var(--primary))}html.dark[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-changelog-active=\"true\"]>a,html.dark[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-active]>a,html.dark[data-current-path*=\"/changelog\"] #table-of-contents .toc-item[data-active-deepest]>a{color:rgb(var(--primary))!important}.callout[data-callout-type=\"note\"]{border-color:rgba(96, 165, 250, 0.45)!important;background:rgba(239, 246, 255, 0.9)!important}.callout[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:rgb(59, 130, 246)!important}.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"]{color:rgb(30, 64, 175)!important}.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"] strong,.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"] a,.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"] code,.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"] p,.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"] li,.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"] span{color:inherit!important}.dark .callout[data-callout-type=\"note\"]{border-color:rgba(96, 165, 250, 0.35)!important;background:rgba(30, 58, 138, 0.22)!important}.dark .callout[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:rgb(147, 197, 253)!important}.dark .callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"]{color:rgb(219, 234, 254)!important}.docs-screenshot{display:block;height:auto;max-width:100%;margin:1.5rem auto;overflow:hidden;vertical-align:middle;border:1px solid rgba(15, 23, 42, 0.08);border-radius:14px;width:auto}.dark .docs-screenshot{border-color:rgba(255, 255, 255, 0.12)}.docs-inline-icon{display:inline-block;width:1.4em;height:1.4em;margin:0 0.1em;vertical-align:-0.35em}.dark .docs-inline-icon{filter:invert(1)}@media (max-width: 640px){.docs-screenshot{margin:1.25rem auto;border-radius:12px}}@media (min-width: 1024px){#localization-select-trigger{position:fixed!important;bottom:16px!important;right:16px!important;left:auto!important;z-index:50!important}}"}]}
{"page":{"pagePath":"en/basic/field/formula","slug":"/en/basic/field/formula","pageMetadata":{"title":"Formula field: calculations and field references","description":"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.","sidebarTitle":"Formula","href":"/en/basic/field/formula"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Formula fields calculate results from other fields in the same record. They can handle math operations, text joining, date calculations, and conditional logic. Use them to turn repeated calculation rules into fields.`}),`\n`,_jsx(Heading,{level:`2`,id:`use-cases`,children:`Use Cases`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scenario`}),_jsx(_components.th,{children:`Good for`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Automatic calculation`}),_jsx(_components.td,{children:`Calculate total price, profit, or score from quantity, unit price, discount, and other fields`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text processing`}),_jsx(_components.td,{children:`Join text, extract content, or parse information by delimiter`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Date processing`}),_jsx(_components.td,{children:`Calculate date differences, check time ranges, or generate future dates`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Conditional logic`}),_jsx(_components.td,{children:`Return different results based on conditions, such as status, hints, or categories`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`formula-basics`,children:`Formula Basics`}),`\n`,_jsx(Heading,{level:`3`,id:`data-types`,children:`Data Types`}),`\n`,_jsx(_components.p,{children:`Before writing a formula, confirm the types of the fields used in the calculation. Different types support different operations and functions.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Common uses`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Number`}),_jsx(_components.td,{children:`Integers or decimals`}),_jsx(_components.td,{children:`Arithmetic, rollups, comparisons`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Text`}),_jsx(_components.td,{children:`String values`}),_jsx(_components.td,{children:`Joining, extracting, replacing, splitting`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Date`}),_jsx(_components.td,{children:`Date or date-time values`}),_jsx(_components.td,{children:`Calculating intervals, comparing dates`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`TRUE`}),` or `,_jsx(_components.code,{children:`FALSE`})]}),_jsx(_components.td,{children:`Conditions and logical operations`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`reference-fields`,children:`Reference Fields`}),`\n`,_jsxs(_components.p,{children:[`In a formula, reference another field by its field name. Wrap the field name in `,_jsx(_components.code,{children:`{}`}),` and keep it consistent with the actual field name:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Unit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` price`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Quantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/teablecn/-278ANXZgVFfm5dh/images/docs/base/2026-10-21-field-formula-editor.png?fit=max\u0026auto=format\u0026n=-278ANXZgVFfm5dh\u0026q=85\u0026s=6f6ae11d18ddaadb4e2a6852292860f6`,alt:`Formula editor with a field reference and the field guide`,className:`docs-screenshot`,\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1306`,height:`1306`,\"data-path\":`images/docs/base/2026-10-21-field-formula-editor.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/teablecn/-278ANXZgVFfm5dh/images/docs/base/2026-10-21-field-formula-editor.png?w=280\u0026fit=max\u0026auto=format\u0026n=-278ANXZgVFfm5dh\u0026q=85\u0026s=33670f84e8be562c68eb9bff1d98e48f 280w, https://mintcdn.com/teablecn/-278ANXZgVFfm5dh/images/docs/base/2026-10-21-field-formula-editor.png?w=560\u0026fit=max\u0026auto=format\u0026n=-278ANXZgVFfm5dh\u0026q=85\u0026s=d27bd54d4baba931dcb2545427041f2b 560w, https://mintcdn.com/teablecn/-278ANXZgVFfm5dh/images/docs/base/2026-10-21-field-formula-editor.png?w=840\u0026fit=max\u0026auto=format\u0026n=-278ANXZgVFfm5dh\u0026q=85\u0026s=e62f1059e36d0e4a2fff40d727aa5c29 840w, https://mintcdn.com/teablecn/-278ANXZgVFfm5dh/images/docs/base/2026-10-21-field-formula-editor.png?w=1100\u0026fit=max\u0026auto=format\u0026n=-278ANXZgVFfm5dh\u0026q=85\u0026s=8c3bb96fe4c13a427ff5002715bcfdbf 1100w, https://mintcdn.com/teablecn/-278ANXZgVFfm5dh/images/docs/base/2026-10-21-field-formula-editor.png?w=1650\u0026fit=max\u0026auto=format\u0026n=-278ANXZgVFfm5dh\u0026q=85\u0026s=398c498af21cd710d4596e32980e6154 1650w, https://mintcdn.com/teablecn/-278ANXZgVFfm5dh/images/docs/base/2026-10-21-field-formula-editor.png?w=2500\u0026fit=max\u0026auto=format\u0026n=-278ANXZgVFfm5dh\u0026q=85\u0026s=bd0f589a344a1a4ae992b5cf9c9b64b2 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`operators`,children:`Operators`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Operator`}),_jsx(_components.th,{children:`Use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`+`})}),_jsx(_components.td,{children:`Calculates the sum of numbers, or joins strings`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`-`})}),_jsx(_components.td,{children:`Calculates the difference between numbers`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`*`})}),_jsx(_components.td,{children:`Calculates the product of numbers`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`/`})}),_jsx(_components.td,{children:`Calculates the quotient of numbers`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`%`})}),_jsx(_components.td,{children:`Calculates the remainder`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`functions-and-expressions`,children:`Functions and Expressions`}),`\n`,_jsx(Heading,{level:`3`,id:`common-functions`,children:`Common Functions`}),`\n`,_jsxs(_components.p,{children:[`Functions perform specific operations. For example, `,_jsx(_components.code,{children:`SUM`}),` calculates a total, `,_jsx(_components.code,{children:`LEFT`}),` extracts characters from the start of text, `,_jsx(_components.code,{children:`TEXTBEFORE`}),` extracts text before a delimiter, and `,_jsx(_components.code,{children:`TEXTSPLIT`}),` splits text by a delimiter.`]}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/en/basic/field/formula/cheat-sheet`,children:`formula cheat sheet`}),` for more functions.`]}),`\n`,_jsx(Heading,{level:`3`,id:`text-processing`,children:`Text Processing`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Operation`}),_jsx(_components.th,{children:`Function examples`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Join text`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\u0026`}),`, `,_jsx(_components.code,{children:`CONCATENATE`})]}),_jsx(_components.td,{children:`Joins two or more text values`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Extract text`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`LEFT`}),`, `,_jsx(_components.code,{children:`RIGHT`}),`, `,_jsx(_components.code,{children:`MID`}),`, `,_jsx(_components.code,{children:`TEXTBEFORE`})]}),_jsx(_components.td,{children:`Extracts part of a string`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Split text`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TEXTSPLIT`})}),_jsx(_components.td,{children:`Splits text into multiple values by delimiter`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`logical-conditions`,children:`Logical Conditions`}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(_components.code,{children:`IF`}),` function to return different values based on a condition:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`IF`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`condition`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value_if_true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value_if_false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`When checking whether a field is empty, compare it with `,_jsx(_components.code,{children:`BLANK()`}),`. For example, `,_jsx(_components.code,{children:`IF({Weight}=BLANK(), 1, 2)`}),` returns `,_jsx(_components.code,{children:`1`}),` when a number field is empty, and `,_jsx(_components.code,{children:`2`}),` otherwise.`]}),`\n`,_jsx(Heading,{level:`3`,id:`complex-expressions`,children:`Complex Expressions`}),`\n`,_jsx(_components.p,{children:`A complex formula can include multiple functions, field references, and operators. Use parentheses to control calculation order:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({Unit `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`price`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Quantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Discount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`result-display-and-maintenance`,children:`Result Display and Maintenance`}),`\n`,_jsx(Heading,{level:`3`,id:`formatting-and-interactive-display`,children:`Formatting and Interactive Display`}),`\n`,_jsxs(_components.p,{children:[`Formula results can also use `,_jsx(_components.a,{href:`/en/basic/field/common/formatter`,children:`formatting`}),` and `,_jsx(_components.a,{href:`/en/basic/field/common/show-as`,children:`interactive display`}),` settings, such as percentage, progress bar, or icon styles. Available options depend on the formula result type.`]}),`\n`,_jsx(Heading,{level:`3`,id:`debugging-and-optimization`,children:`Debugging and Optimization`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Check data types`}),`: Confirm that operations and functions use the correct data types.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Verify field references`}),`: Confirm that field names are written correctly.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Test step by step`}),`: Break complex formulas into smaller parts and test them separately.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Avoid repeated calculations`}),`: If the same calculation is used in several places, consider storing the result in a separate field.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`complexity-limits`,children:`Complexity Limits`}),`\n`,_jsx(_components.p,{children:`When you save a formula, Teable first expands it into the structure that actually takes part in the computation, then checks the size of that structure. If it exceeds a limit, the save is rejected and the message names what went over and the limit that applies — the number of expanded nodes, the nesting depth of the computation, the depth of references between formulas — and the change is not saved.`}),`\n`,_jsx(_components.p,{children:`A short formula can still go over: when one formula references another, and that one references a third, the expanded structure grows quickly. Storing intermediate results in their own fields and cutting repeated references and complex branches usually brings it back under the limit.`}),`\n`,_jsxs(_components.p,{children:[`If a saved formula hits a limit while computing, the field reports `,_jsx(_components.code,{children:`Formula compilation exceeds the computation limit; results have not been updated`}),` in `,_jsx(_components.a,{href:`/en/basic/view/grid`,children:`computed field activity`}),`. Once the formula is simpler, the next write recomputes the field.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Formula field: calculations and field references","description":"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.","sidebarTitle":"Formula","href":"/en/basic/field/formula"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Use Cases","slug":"use-cases","depth":2,"children":[]},{"title":"Formula Basics","slug":"formula-basics","depth":2,"children":[{"title":"Data Types","slug":"data-types","depth":3,"children":[]},{"title":"Reference Fields","slug":"reference-fields","depth":3,"children":[]},{"title":"Operators","slug":"operators","depth":3,"children":[]}]},{"title":"Functions and Expressions","slug":"functions-and-expressions","depth":2,"children":[{"title":"Common Functions","slug":"common-functions","depth":3,"children":[]},{"title":"Text Processing","slug":"text-processing","depth":3,"children":[]},{"title":"Logical Conditions","slug":"logical-conditions","depth":3,"children":[]},{"title":"Complex Expressions","slug":"complex-expressions","depth":3,"children":[]}]},{"title":"Result Display and Maintenance","slug":"result-display-and-maintenance","depth":2,"children":[{"title":"Formatting and Interactive Display","slug":"formatting-and-interactive-display","depth":3,"children":[]},{"title":"Debugging and Optimization","slug":"debugging-and-optimization","depth":3,"children":[]},{"title":"Complexity Limits","slug":"complexity-limits","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/teablecn/00e327112fed3559/changelog-toc.js","/_mintlify/custom/teablecn/52b6025e1e6e9c39/language-route.js","/_mintlify/custom/teablecn/58987b414332357e/help-link-tracking.js"],"subdomain":"teablecn","siteName":"Teable","title":"Formula field: calculations and field references - Teable","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/basic/field/formula","matchLevel":0},"zh":{"href":"/zh/basic/field/formula","matchLevel":1},"ru":{"href":"/ru/basic/field/formula","matchLevel":1},"de":{"href":"/de/basic/field/formula","matchLevel":1},"fr":{"href":"/fr/basic/field/formula","matchLevel":1},"es":{"href":"/es/basic/field/formula","matchLevel":1},"it":{"href":"/it/basic/field/formula","matchLevel":1},"ja":{"href":"/ja/basic/field/formula","matchLevel":1},"tr":{"href":"/tr/basic/field/formula","matchLevel":1},"uk":{"href":"/uk/basic/field/formula","matchLevel":1},"ar":{"href":"/ar/basic/field/formula","matchLevel":1}}},"lastModified":"2026-10-21T16:05:53.628Z","gitLastModified":"2026-10-21T16:07:07.000Z","originalFileLocation":"en/basic/field/formula.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.\">\u003cmeta data-mint-head name=\"keywords\" content=\"database, app builder, AI, no-code, low-code, Airtable alternative, PostgreSQL, automation\">\u003cmeta data-mint-head name=\"application-name\" content=\"Teable\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Formula field: calculations and field references - Teable\">\u003cmeta data-mint-head property=\"og:description\" content=\"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Teable\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.teable.ai/en/basic/field/formula\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://teable.ai/assets/images/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Formula field: calculations and field references - Teable\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://teable.ai/assets/images/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/teablecn/rUjbOrtkw4E-Xgfe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Teable\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#131415\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.teable.ai/en/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/basic/field/formula.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://help.teable.ai/en/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://help.teable.ai/zh/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://help.teable.ai/ru/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://help.teable.ai/de/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://help.teable.ai/fr/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://help.teable.ai/es/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://help.teable.ai/it/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://help.teable.ai/ja/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"tr\" href=\"https://help.teable.ai/tr/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"uk\" href=\"https://help.teable.ai/uk/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://help.teable.ai/ar/basic/field/formula\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://help.teable.ai/en/basic/field/formula\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.teable.ai/#organization\",\"name\":\"Teable\",\"url\":\"https://help.teable.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/teablecn/Sov59EnEPMakaGyj/images/teable-logo-full.png?fit=max\u0026auto=format\u0026n=Sov59EnEPMakaGyj\u0026q=85\u0026s=24e1fe49258a9a8f76eaec5792623926\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.teable.ai#website\",\"name\":\"Teable\",\"url\":\"https://help.teable.ai\",\"publisher\":{\"@id\":\"https://help.teable.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.teable.ai/en/basic/field/formula#webpage\",\"url\":\"https://help.teable.ai/en/basic/field/formula\",\"name\":\"Formula field: calculations and field references\",\"description\":\"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.\",\"dateModified\":\"2026-10-21T16:07:07.000Z\",\"isPartOf\":{\"@id\":\"https://help.teable.ai#website\"},\"breadcrumb\":{\"@id\":\"https://help.teable.ai/en/basic/field/formula#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.teable.ai/en/basic/field/formula#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Project\",\"item\":\"https://help.teable.ai/en/basic/base\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Field\",\"item\":\"https://help.teable.ai/en/basic/field\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Formula field: calculations and field references\",\"item\":\"https://help.teable.ai/en/basic/field/formula\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://help.teable.ai/en/basic/field/formula#article\",\"headline\":\"Formula field: calculations and field references\",\"name\":\"Formula field: calculations and field references\",\"description\":\"Calculate values from other fields with text, number, date and logical functions. Find formula examples, formatting options and troubleshooting guidance.\",\"url\":\"https://help.teable.ai/en/basic/field/formula\",\"mainEntityOfPage\":{\"@id\":\"https://help.teable.ai/en/basic/field/formula#webpage\"},\"image\":\"https://teable.ai/assets/images/og-image.png\",\"dateModified\":\"2026-10-21T16:07:07.000Z\",\"publisher\":{\"@id\":\"https://help.teable.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://help.teable.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Teable\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Teable\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/basic/field/formula.md","siteName":"Teable","nav":{"global":null,"languages":[{"language":"en","banner":{"content":"🚀 Share your projects as templates. See our [changelog](/en/changelog#nov-20-2026) for details.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Support"}]},"tabs":[{"tab":"Docs","groups":[{"group":"Start here","pages":[{"title":"Documentation: AI, tables, APIs and self-hosting","sidebarTitle":"Teable documentation","href":"/en"}]},{"group":"AI","pages":[{"title":"AI features: chat, app building and automation","sidebarTitle":"AI capabilities in Teable","href":"/en/basic/ai/overview"},{"title":"AI Chat: analyze data and work with your tables","sidebarTitle":"AI Chat","href":"/en/basic/ai/ai-chat"},{"title":"Artifacts: save, revise, and share AI-generated reports and charts","sidebarTitle":"Artifacts","href":"/en/basic/ai/artifact"},{"title":"AI routines: scheduled and event-triggered tasks","sidebarTitle":"Routine","href":"/en/basic/ai/routine"},{"group":"App Builder","pages":[{"title":"App Builder: create and publish AI-built apps","sidebarTitle":"App Builder","href":"/en/basic/ai/app-builder"},{"title":"App Builder tips: plan, prompt and troubleshoot","sidebarTitle":"App Builder Best Practices","href":"/en/basic/ai/app-builder-practical-guide"},{"title":"Track clinical study startup and site readiness","sidebarTitle":"Study startup and site readiness","href":"/en/basic/ai/examples/study-startup"}]},{"title":"AI fields: summarize, classify and generate values","sidebarTitle":"AI Fields","href":"/en/basic/field/ai/ai-field"},{"group":"Connect \u0026 Migrate Everything","pages":[{"title":"Connect Everything: migrate external data","sidebarTitle":"Connect \u0026 Migrate Everything","href":"/en/basic/ai/connect-everything"},{"title":"Migrate Airtable data to Teable","sidebarTitle":"Migrate Airtable","href":"/en/basic/ai/connect-everything/migrate-airtable"},{"title":"Migrate Baserow data to Teable","sidebarTitle":"Migrate Baserow","href":"/en/basic/ai/connect-everything/migrate-baserow"},{"title":"Migrate SmartSuite data to Teable","sidebarTitle":"Migrate SmartSuite","href":"/en/basic/ai/connect-everything/migrate-smartsuite"},{"title":"Migrate NocoDB data to Teable","sidebarTitle":"Migrate NocoDB","href":"/en/basic/ai/connect-everything/migrate-nocodb"},{"title":"Migrate Jira data to Teable","sidebarTitle":"Migrate Jira","href":"/en/basic/ai/connect-everything/migrate-jira"},{"title":"Migrate monday.com data to Teable","sidebarTitle":"Migrate monday.com","href":"/en/basic/ai/connect-everything/migrate-monday"},{"title":"Migrate ClickUp data to Teable","sidebarTitle":"Migrate ClickUp","href":"/en/basic/ai/connect-everything/migrate-clickup"},{"title":"Migrate Smartsheet data to Teable","sidebarTitle":"Migrate Smartsheet","href":"/en/basic/ai/connect-everything/migrate-smartsheet"},{"title":"Migrate Glide data to Teable","sidebarTitle":"Migrate Glide","href":"/en/basic/ai/connect-everything/migrate-glide"},{"title":"Migrate AppSheet data to Teable","sidebarTitle":"Migrate AppSheet","href":"/en/basic/ai/connect-everything/migrate-appsheet"},{"title":"Migrate Asana data to Teable","sidebarTitle":"Migrate Asana","href":"/en/basic/ai/connect-everything/migrate-asana"},{"title":"Connect APIs, databases and other data sources","sidebarTitle":"Connect \u0026 Migrate More Sources","href":"/en/basic/ai/connect-everything/more-sources"}]},{"title":"Manage connections, API keys and secrets","sidebarTitle":"Credentials and Integrations","href":"/en/basic/credential"},{"title":"Connect AI agents with Teable Skill or MCP","sidebarTitle":"Connect AI Agents to Teable","href":"/en/basic/ai/teable-skill"},{"title":"Custom AI models: add providers and test access","sidebarTitle":"Custom AI Model","href":"/en/basic/ai/custom-model"}]},{"group":"Space","pages":[{"title":"Create and manage spaces","sidebarTitle":"Manage spaces","href":"/en/basic/space"},{"title":"Invite and manage space collaborators","sidebarTitle":"Space Invitation","href":"/en/basic/space/space-invite"},{"title":"Invite collaborators to a specific project","sidebarTitle":"Project Invitation","href":"/en/basic/space/base-invite"},{"title":"Space and project permission levels","sidebarTitle":"Collaboration Permission Details","href":"/en/basic/space/space-permission"},{"title":"Cloud billing: plans, credits, usage and invoices","sidebarTitle":"Billing \u0026 Subscription","href":"/en/basic/space/billing"}]},{"group":"Automation","pages":[{"title":"Build automations with triggers and actions","sidebarTitle":"Build automations","href":"/en/basic/automation"},{"group":"Triggers","pages":[{"title":"Record Matches Conditions trigger: detect state changes","sidebarTitle":"When record matches conditions","href":"/en/basic/automation/trigger/records/record-matches-conditions"},{"title":"Record Created trigger: automate new rows","sidebarTitle":"When record created","href":"/en/basic/automation/trigger/records/record-created"},{"title":"Record Updated trigger: watch field changes","sidebarTitle":"When record updated","href":"/en/basic/automation/trigger/records/record-updated"},{"title":"Form Submitted trigger: process new responses","sidebarTitle":"When form submitted","href":"/en/basic/automation/trigger/forms/form-submitted"},{"title":"Scheduled Time trigger: recurring or one-time runs","sidebarTitle":"At scheduled time","href":"/en/basic/automation/trigger/external/scheduled-time"},{"title":"Button Click trigger: run an automation from a record","sidebarTitle":"When button clicked","href":"/en/basic/automation/trigger/forms/button-click"},{"title":"Webhook trigger: start an automation with HTTP POST","sidebarTitle":"When webhook received","href":"/en/basic/automation/trigger/external/webhook-received"},{"title":"Connector Event trigger: react to app events","sidebarTitle":"When connector event received","href":"/en/basic/automation/trigger/external/connector-event"},{"group":"When email received","pages":[{"title":"Email Received trigger: connect a mailbox","sidebarTitle":"When email received overview","href":"/en/basic/automation/trigger/email/email-received-overview"},{"title":"Gmail IMAP setup and app passwords","sidebarTitle":"Set up Gmail IMAP","href":"/en/basic/automation/trigger/email/gmail-imap"}]}]},{"group":"Actions","pages":[{"group":"Build with AI (recommended)","pages":[{"title":"Generate automation scripts with AI","href":"/en/basic/automation/actions/ai/ai-script"}]},{"group":"Build manually","pages":[{"title":"Create record action in an automation","sidebarTitle":"Create record","href":"/en/basic/automation/actions/records/create-record"},{"title":"Update record action in an automation","sidebarTitle":"Update record","href":"/en/basic/automation/actions/records/update-record"},{"title":"Get records action: filters and pagination","sidebarTitle":"Get records","href":"/en/basic/automation/actions/records/get-records"},{"group":"Send email","pages":[{"title":"Send email action: recipients, content and SMTP","sidebarTitle":"Send email overview","href":"/en/basic/automation/actions/communication/send-email-overview"},{"title":"Custom SMTP for automation email actions","sidebarTitle":"Set up SMTP and sender","href":"/en/basic/automation/actions/communication/smtp-sender"}]},{"title":"HTTP request action: call an external API","sidebarTitle":"HTTP request","href":"/en/basic/automation/actions/logic/http-request"},{"title":"AI generate action: text and structured output","sidebarTitle":"AI generate","href":"/en/basic/automation/actions/ai/ai-generate"},{"title":"Cross-project data access in automations","sidebarTitle":"Cross-project access","href":"/en/basic/automation/actions/records/cross-base"},{"title":"Loop action: process arrays in batches","sidebarTitle":"Loop (batch)","href":"/en/basic/automation/actions/logic/loop-run"},{"title":"Conditional logic: branch automations","sidebarTitle":"Conditional logic","href":"/en/basic/automation/actions/manual/conditional-logic"},{"title":"Run script action: custom JavaScript automations","sidebarTitle":"Write automation scripts","href":"/en/basic/automation/ai/scripting/runscript"}]}]},{"group":"Examples","pages":[{"title":"Auto-create records on a recurring schedule","href":"/en/basic/automation/examples/recurring-records"},{"title":"Run different actions based on record values","href":"/en/basic/automation/examples/conditional-actions"},{"title":"Batch-process records with loop","href":"/en/basic/automation/examples/batch-loop"},{"title":"Avoid unwanted triggers with filters and watch fields","href":"/en/basic/automation/examples/prevent-unwanted-triggers"},{"title":"Auto-record the time when a status changes","href":"/en/basic/automation/examples/timestamp-status"},{"title":"Push notifications to Slack, Discord, or Teams","href":"/en/basic/automation/examples/push-notifications"},{"title":"Send deadline reminders before tasks are due","href":"/en/basic/automation/examples/deadline-reminders"},{"title":"Generate and send a daily email digest with AI","href":"/en/basic/automation/examples/ai-email-digest"},{"title":"Auto-classify new form entries with AI","href":"/en/basic/automation/examples/ai-classify-forms"},{"title":"Keep records in sync across multiple projects","href":"/en/basic/automation/examples/cross-base-sync"},{"title":"Build automations programmatically with the API","href":"/en/basic/automation/examples/api-automation"}]}]},{"group":"Project","pages":[{"title":"Create, share and migrate projects","sidebarTitle":"Create and manage projects","href":"/en/basic/base"},{"group":"Table","pages":[{"title":"Create, organize and share tables","sidebarTitle":"Create and manage tables","href":"/en/basic/table"},{"title":"Import CSV, Excel, Airtable and Google Sheets data","sidebarTitle":"Import","href":"/en/basic/table/import"},{"title":"Export a table or view to CSV","sidebarTitle":"Export","href":"/en/basic/table/export"}]},{"group":"Field","pages":[{"title":"Field types: choose, add and manage columns","sidebarTitle":"Fields and field types","href":"/en/basic/field"},{"title":"AI fields: summarize, classify and generate values","sidebarTitle":"AI Fields","href":"/en/basic/field/ai/ai-field"},{"group":"Basic Field","pages":[{"title":"Single line text field: names, IDs and links","sidebarTitle":"Single line text","href":"/en/basic/field/single-line-text"},{"title":"Long text field: multiline notes and Markdown","sidebarTitle":"Long text","href":"/en/basic/field/long-text"},{"title":"Number field: decimals, currency and percentages","sidebarTitle":"Number","href":"/en/basic/field/number"},{"title":"Single select field: statuses and option management","sidebarTitle":"Single select","href":"/en/basic/field/single-select"},{"title":"Multiple select field: tags and option management","sidebarTitle":"Multiple select","href":"/en/basic/field/multiple-select"},{"title":"Date field: formats, time zones and defaults","sidebarTitle":"Date","href":"/en/basic/field/date"},{"title":"Rating field: visual scores for records","sidebarTitle":"Rating","href":"/en/basic/field/rating"},{"title":"Checkbox field: track yes/no and completion","sidebarTitle":"Checkbox","href":"/en/basic/field/checkbox"},{"title":"Attachment field: upload and download files","description":"Add images, PDFs and other files to a record. Configure an Attachment field, preview files and download attachments individually or in a batch.","sidebarTitle":"Attachment","href":"/en/basic/field/attachment"}]},{"group":"Advanced Field","pages":[{"group":"Formula","pages":[{"title":"Formula field: calculations and field references","sidebarTitle":"Formula","href":"/en/basic/field/formula"},{"title":"Formula syntax: values, field references and operators","description":"Write Teable formulas using field references, values, operators, functions, and parentheses.","sidebarTitle":"Formula Grammar","href":"/en/basic/field/formula/grammar"},{"title":"Formula function reference with syntax and examples","mode":"wide","sidebarTitle":"Function Cheat Sheet","href":"/en/basic/field/formula/cheat-sheet"}]},{"title":"Link to record field: connect records across tables","sidebarTitle":"Link to record","href":"/en/basic/field/link"},{"title":"Rollup field: summarize linked records","sidebarTitle":"Rollup","href":"/en/basic/field/rollup"},{"title":"Lookup field: reference linked table values","sidebarTitle":"Lookup","href":"/en/basic/field/lookup"},{"title":"Conditional rollup: count and summarize matches","sidebarTitle":"Conditional rollup","href":"/en/basic/field/conditional-rollup"},{"title":"Conditional lookup: find matching table records","sidebarTitle":"Conditional lookup","href":"/en/basic/field/conditional-lookup"},{"title":"User field: assign members to records","sidebarTitle":"User field","href":"/en/basic/field/user"},{"title":"Created by field: track record creators","sidebarTitle":"Created by","href":"/en/basic/field/created-by"},{"title":"Last modified by field: track record editors","sidebarTitle":"Last modified by","href":"/en/basic/field/last-modified-by"},{"title":"Created time field: track record creation dates","sidebarTitle":"Created time","href":"/en/basic/field/created-time"},{"title":"Last modified time field: track record changes","sidebarTitle":"Last modified time","href":"/en/basic/field/last-modified-time"},{"title":"Auto number field: generate record sequences","sidebarTitle":"Auto number","href":"/en/basic/field/auto-number"},{"group":"Button","pages":[{"title":"Button field: trigger an automation","sidebarTitle":"Button","href":"/en/basic/field/button"},{"title":"Button automation example: convert sales leads","sidebarTitle":"Button Practical Guide","href":"/en/basic/field/button-practical-guide"}]}]},{"group":"Common","pages":[{"title":"Field formatting: numbers, currency and dates","sidebarTitle":"Formatting","href":"/en/basic/field/common/formatter"},{"title":"Field display: email links and number charts","sidebarTitle":"Interactive Display","href":"/en/basic/field/common/show-as"},{"title":"Single-value and multiple-value fields","sidebarTitle":"Single Value and Multiple Values","href":"/en/basic/field/common/is-multiple-value"}]}]},{"group":"Records","pages":[{"title":"Create, edit and delete records","sidebarTitle":"Create and manage records","href":"/en/basic/record"},{"title":"Record comments: discuss data and mention teammates","sidebarTitle":"Comments","href":"/en/basic/record/comment"},{"title":"Record history: review data changes and editors","sidebarTitle":"Record history","href":"/en/basic/record/record-history"},{"title":"Archive records and restore deleted table data","sidebarTitle":"Archive and Trash","href":"/en/basic/record/archive-trash"}]},{"group":"View","pages":[{"title":"Grid view: edit, organize and review table data","sidebarTitle":"Grid","href":"/en/basic/view/grid"},{"title":"Form view: collect responses into a table","sidebarTitle":"Form","href":"/en/basic/view/form"},{"title":"Kanban view: group records and track progress","sidebarTitle":"Kanban","href":"/en/basic/view/kanban"},{"title":"Gallery view: image cards and record details","sidebarTitle":"Gallery","href":"/en/basic/view/gallery"},{"title":"Calendar view: schedule records by date","sidebarTitle":"Calendar","href":"/en/basic/view/calendar"},{"title":"Filter, group, sort and share a view","sidebarTitle":"View Toolbar","href":"/en/basic/view/toolbar"}]},{"title":"Turn a project into a template and publish it","sidebarTitle":"Make a template","href":"/en/basic/template"}]},{"group":"Authority Matrix","pages":[{"group":"Authority Matrix","pages":[{"title":"Authority Matrix: roles and data access permissions","sidebarTitle":"Roles and access permissions","href":"/en/basic/authority-matrix"},{"title":"Authority Matrix example: sales team permissions","sidebarTitle":"Authority Matrix Guidelines","href":"/en/basic/authority-matrix/authority-matrix-practical-guide"}]}]},{"group":"SSO","pages":[{"title":"Space SSO: verify domains and connect an identity provider","sidebarTitle":"Single Sign-On (SSO)","href":"/en/basic/sso/overview"},{"title":"Set up Azure Entra ID single sign-on","sidebarTitle":"Azure Entra ID SSO","href":"/en/basic/sso/azure-entra-id"},{"title":"Set up Okta single sign-on","sidebarTitle":"Okta SSO","href":"/en/basic/sso/okta"},{"title":"Set up Google Workspace single sign-on","sidebarTitle":"Google Workspace SSO","href":"/en/basic/sso/google-workspace"},{"title":"Set up Auth0 single sign-on","sidebarTitle":"Auth0 SSO","href":"/en/basic/sso/auth0"},{"title":"Set up OneLogin single sign-on","sidebarTitle":"OneLogin SSO","href":"/en/basic/sso/onelogin"},{"title":"Set up Authentik single sign-on","sidebarTitle":"Authentik SSO","href":"/en/basic/sso/authentik"}]},{"group":"Comparison","pages":[{"title":"Teable vs Excel: database and spreadsheet workflows","sidebarTitle":"Teable vs Excel","href":"/en/compare/teable-vs-excel"}]}]},{"tab":"Self-hosted","pages":[{"title":"Self-hosted","href":"/en/deploy/activate"}]},{"tab":"API","pages":[{"title":"API","href":"/en/api-doc/overview"}]},{"tab":"Security","pages":[{"title":"Security","href":"/en/basic/security"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/en/changelog"}]}]},{"language":"zh","banner":{"content":"🚀 把项目做成模板分享。查看[更新日志](/zh/changelog#2026-11-20)了解详情。","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"支持"}]},"pages":[{"title":"zh","href":"/zh/basic/field/formula"}]},{"language":"ru","banner":{"content":"🚀 Делитесь проектами как шаблонами. Подробнее в [журнале изменений](/ru/changelog#20-ноября-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Поддержка"}]},"pages":[{"title":"ru","href":"/ru/basic/field/formula"}]},{"language":"de","banner":{"content":"🚀 Teile deine Projekte als Vorlagen. Details im [Änderungsprotokoll](/de/changelog#20-november-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Support"}]},"pages":[{"title":"de","href":"/de/basic/field/formula"}]},{"language":"fr","banner":{"content":"🚀 Partagez vos projets sous forme de modèles. Consultez notre [journal des modifications](/fr/changelog#20-novembre-2026) pour en savoir plus.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Assistance"}]},"pages":[{"title":"fr","href":"/fr/basic/field/formula"}]},{"language":"es","banner":{"content":"🚀 Comparte tus proyectos como plantillas. Consulta el [registro de cambios](/es/changelog#20-de-noviembre-de-2026) para más detalles.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Soporte"}]},"pages":[{"title":"es","href":"/es/basic/field/formula"}]},{"language":"it","banner":{"content":"🚀 Condividi i tuoi progetti come modelli. Scopri i dettagli nel [registro delle modifiche](/it/changelog#20-novembre-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Supporto"}]},"pages":[{"title":"it","href":"/it/basic/field/formula"}]},{"language":"ja","banner":{"content":"🚀 プロジェクトをテンプレートとして共有。詳しくは[更新履歴](/ja/changelog#2026年11月20日)をご覧ください。","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"サポート"}]},"pages":[{"title":"ja","href":"/ja/basic/field/formula"}]},{"language":"tr","banner":{"content":"🚀 Projelerinizi şablon olarak paylaşın. Ayrıntılar için [değişiklik günlüğüne](/tr/changelog#20-kasım-2026) bakın.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Destek"}]},"pages":[{"title":"tr","href":"/tr/basic/field/formula"}]},{"language":"uk","banner":{"content":"🚀 Діліться проєктами як шаблонами. Докладніше в [журналі змін](/uk/changelog#20-листопада-2026).","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"Підтримка"}]},"pages":[{"title":"uk","href":"/uk/basic/field/formula"}]},{"language":"ar","banner":{"content":"🚀 شارك مشاريعك كقوالب. راجع [سجل التغييرات](/ar/changelog#20-نوفمبر-2026) لمعرفة التفاصيل.","dismissible":true},"navbar":{"links":[{"icon":"comment","href":"https://community.teable.ai/","label":"الدعم"}]},"pages":[{"title":"ar","href":"/ar/basic/field/formula"}]}]},"basePath":"","title":"Formula field: calculations and field references - Teable","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["10e4515597","a74be98ba7"],"chunks":["BannerMarkdown-CVKwuln2.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","zoom-image-lightbox-BUkqX3JF.js","lightbox-handle-r17bVUz3.js"]}