---
title: How do formulas work in Vaira?
description: Learn how formulas work in Vaira in principle and how to write a simple formula that adds two numbers yourself.
---

[Skip to content](https://support.vaira.app/en/how-do-formulas-work-in-vaira#main-content)

- [English](https://support.vaira.app/en/how-do-formulas-work-in-vaira)
- [Deutsch (German)](https://support.vaira.app/wie-funktionieren-formeln-in-vaira)

English

Show submenu for translations

[![App Icon - Orange Gradient + Logo - White Gradient- 512px](https://support.vaira.app/hs-fs/hubfs/Vaira%20Design-Elemente/App%20Icon%20-%20Orange%20Gradient%20%2B%20Logo%20-%20White%20Gradient-%20512px.png?width=50&height=50&name=App%20Icon%20-%20Orange%20Gradient%20%2B%20Logo%20-%20White%20Gradient-%20512px.png)](https://support.vaira.app/?hsLang=en)

- [Ticket erstellen](https://vaira.app/bug)
- [Zum Kundenportal](https://support.vaira.app/tickets)

Open main navigation

Close main navigation

- [Ticket erstellen](https://vaira.app/bug)
- [Zum Kundenportal](https://support.vaira.app/tickets)
- - [English](https://support.vaira.app/en/how-do-formulas-work-in-vaira)
    - [Deutsch (German)](https://support.vaira.app/wie-funktionieren-formeln-in-vaira)

  English
  
  Show submenu for translations
- [kostenlosen Account erstellen](https://vaira.app/kostenlos)

[kostenlosen Account erstellen](https://vaira.app/kostenlos)

 Hallo. Wie können wir dir helfen?

- There are no suggestions because the search field is empty.

1. [Vaira Knowledge Database](https://support.vaira.app/en?hsLang=en)
2. [Vaira Office](https://support.vaira.app/en/vaira-office?hsLang=en)
3. [Workflows and processes](https://support.vaira.app/en/vaira-office?hsLang=en#workflows-and-processes)

December 4, 2026

# How do formulas work in Vaira?

Once you've understood the [**basic principle of formulas**](https://support.vaira.app/en/what-is-a-formula?hsLang=en), you're ready for a deeper technical look. This is especially interesting for anyone who builds [**workflows**](https://support.vaira.app/en/what-is-a-workflow?hsLang=en) and wants to (partially) automate them. Formulas also let you connect fields and perform calculations. Since things get a bit more technical here, it can help to bring IT experts from your company on board. That said, we'll do our best to explain everything in a way that non-technical readers can follow, too.

When you build a workflow, it consists of [**fields**](https://support.vaira.app/en/which-fields-are-available-for-tasks?hsLang=en) that are grouped into [**tasks**](https://support.vaira.app/en/what-is-a-task?hsLang=en). These tasks are then added to [**steps**](https://support.vaira.app/en/what-is-a-step?hsLang=en). Steps are the individual stages of your workflow and form the backbone of the process, so to speak. Fields, tasks, and steps all have a [**display name**](https://support.vaira.app/en/what-is-a-display-name?hsLang=en), which matters to the people using them, as well as their own ID (see: [**step ID**](https://support.vaira.app/en/what-is-a-step-id?hsLang=en), [**task ID**](https://support.vaira.app/en/what-is-a-task-id?hsLang=en), [**field ID**](https://support.vaira.app/en/what-is-a-field-id?hsLang=en)). The IDs make each element uniquely identifiable for Vaira, and they're also the building blocks you'll need for your formulas.

#### How formulas and functions work, using Excel as an example

If you've ever worked with a typical spreadsheet program, you'll already be familiar with the principle. Roughly speaking, there are two different approaches. Either you write your own formula that does exactly what you need. Or you use a ready-made **function** that Vaira already provides out of the box.

Let's take a spreadsheet program as an example to make this more tangible. In Microsoft Excel, for example, you can add up several cells "by hand". In the calculation cell, this looks something like this:

`=A1+A2+A3+A4+A5+A6+A7+…+A100`

Depending on the number of cells, this can be quite a lot of work. So you don't have to click every single cell, Excel also lets you use a **function**. Functions come with built-in logic designed for specific use cases. You simply call the **function** with a specific "keyword" so Excel knows what to do. For the example above, it looks like this:

`=SUM(A1:A100)`

The keyword SUM calls a **function** that knows that everything inside the parentheses should be added up. The colon inside the **function** also tells Excel to apply it to the range A1 to A100.

#### The basic structure of formulas in Vaira

In Vaira, you'll usually only need to connect a few fields with each other. That's why the easier-to-follow "by hand" method is usually all you need, and you'll hardly have to memorize any **functions**. But what does "by hand" mean in Vaira? After all, we don't work with cells like in Excel.

Instead, we work with IDs. Within your workflow, the IDs specify exactly which "cell" should be calculated with or compared to which other "cell", or where something should be copied automatically. To do this, formulas always follow the same basic form: `tasks.taskID.fields.fieldID`. What does that mean? Let's go through the individual parts.

- "tasks." is the start of your reference. Every reference to a field starts with tasks. This is a fixed value that never changes.
- "taskID." is a variable. This is where you insert the ID of the task you want to refer to.
- "fields." is another fixed part that never changes. It tells Vaira that the next value refers to a field.
- "fieldID", just like the task ID, is the unique ID you gave a field. This is where you pick the field that should be used or calculated with.

This logic sounds more complicated than it actually is. In plain language, you can think of the formula as a command like this: Vaira, look *in all tasks \[tasks.\]* for *one particular task \[taskID\]*, and within that task, look *in all fields \[fields.\]* for *one specific field \[fieldID\]*.

Still sounds complicated? Then let's do a calculation together! We'll keep it simple and add two numbers, showing the result in a separate field.

#### Practical example: calculating a sum

For a very simple sum of two fields, we'll first build a lean process in the workflow engine: two steps and one task, that's all we need. In our example, the workflow is called "Aufmaß Rohrgraben". Of course, your names and structure will look different.

[![Workflow editor in Vaira Office with the steps Aufmaß and Abnahme, both containing the task Summe berechnen](https://support.vaira.app/hs-fs/hubfs/2026-12-03_Vaira-Office_Formel-Workflow-Beispiel_EN.png?width=670&name=2026-12-03_Vaira-Office_Formel-Workflow-Beispiel_EN.png)](https://support.vaira.app/hubfs/2026-12-03_Vaira-Office_Formel-Workflow-Beispiel_EN.png?hsLang=en)

Here you can see the two steps **Aufmaß** (measurement) and **Abnahme** (acceptance). To keep things simple, both contain the same task, **Summe berechnen** (calculate sum). For now, we're only interested in the first step, where the formula is used. Let's open the task using the **arrow** next to its name in the left column under **Tasks** to get an overview of how it's structured.

[![Opened task Summe berechnen with the task ID SummeBerechnen and the field IDs zahlEins, zahlZwei and summe](https://support.vaira.app/hs-fs/hubfs/2026-12-03_Vaira-Office_Formel-Aufgabe-IDs_EN.png?width=370&name=2026-12-03_Vaira-Office_Formel-Aufgabe-IDs_EN.png)](https://support.vaira.app/hubfs/2026-12-03_Vaira-Office_Formel-Aufgabe-IDs_EN.png?hsLang=en)

Here you'll find all the information we need for our formula. The task has an ID and contains three number fields, each with a display name and an ID. What matters to us:

1. The ID of the **task** (task ID): `SummeBerechnen`
2. The ID of the **first number field** (field ID): `zahlEins`
3. The ID of the **second number field** (field ID): `zahlZwei`
4. The ID of the output field for the **sum** (field ID): `summe`

Remember how we reference a field in a formula: `tasks.taskID.fields.fieldID`. To calculate a sum, we also need, unsurprisingly, the plus sign. So our goal is to add the field "zahlEins" to the field "zahlZwei" from the task "SummeBerechnen". The result should be displayed in the field "summe".

If you click the **Formula** icon (the small calculator icon below the field) for the **Summe** field, the **Formula** window opens. Once filled in, it looks like this:

[![Formula window in the workflow editor with title, description and the expression for the sum of two number fields](https://support.vaira.app/hs-fs/hubfs/2026-12-03_Vaira-Office_Feldberechnung-Formel_EN-1.png?width=670&name=2026-12-03_Vaira-Office_Feldberechnung-Formel_EN-1.png)](https://support.vaira.app/hubfs/2026-12-03_Vaira-Office_Feldberechnung-Formel_EN-1.png?hsLang=en)

You can choose the **Title** and **Description** freely, so you'll know at a glance later on what the formula does. The interesting part for us is the **Expression** field. It contains:

`tasks.SummeBerechnen.fields.zahlEins + tasks.SummeBerechnen.fields.zahlZwei`

Let's use this to recap what we've learned so far. What are we telling Vaira? First, it should pick out the task with the ID "SummeBerechnen" from all tasks. Then it should search all fields in this task until it finds the field with the ID "zahlEins". Vaira remembers the value from this field.

Next comes the plus sign. With it, we tell Vaira: take this first value and add it to whatever comes next. **Good to know:** The spaces around the plus sign aren't strictly necessary, but they make the formula much easier to read.

Then we tell Vaira which value to add. In the same way as with the first value, it should look for a field in the task "SummeBerechnen", since both fields are in the same task. This time, however, we want the value from the field with the ID "zahlZwei".

So, in plain terms, the formula means: zahlEins + zahlZwei. Since we've stored the formula in the field "summe", that's where the result is shown in the end. Click **Save** in the Formula window and then **Save** at the top of the task to store the formula. For it to apply to new processes, you then need to **activate** the workflow.

#### Here's what the result looks like in a process

Let's see how this all works in practice:

[![Sequence in a process: enter numbers, close the task and open it again, after which the Summe field shows the result 20](https://support.vaira.app/hs-fs/hubfs/2026-12-03_Vaira-Office_Formel-Summe-Ablauf_EN.gif?width=670&name=2026-12-03_Vaira-Office_Formel-Summe-Ablauf_EN.gif)](https://support.vaira.app/hubfs/2026-12-03_Vaira-Office_Formel-Summe-Ablauf_EN.gif?hsLang=en)

Here you can see a process based on this workflow. Our task **Summe berechnen** is in the **Aufmaß** step. When you click the task, the side panel for entering data opens on the right. You'll see the two number fields you can fill in and the field **Summe**, which only displays a value. As long as both number fields are empty, it shows 0. You can't type anything into the sum field, because the formula specifies that its content is calculated automatically.

**Don't be surprised:** When you enter values in the number fields, nothing happens at first. Vaira recalculates the formula as soon as you've finished editing the task. To do this, simply close the side panel using the **X** in the top right corner and open the task again. The field **Summe** now shows you the result.

[![Side panel of the task Summe berechnen with the values 12.5 and 7.5 and the calculated result 20 in the Summe field](https://support.vaira.app/hs-fs/hubfs/2026-12-03_Vaira-Office_Formel-Summe-Ergebnis_EN.png?width=670&name=2026-12-03_Vaira-Office_Formel-Summe-Ergebnis_EN.png)](https://support.vaira.app/hubfs/2026-12-03_Vaira-Office_Formel-Summe-Ergebnis_EN.png?hsLang=en)

Following this pattern, you can also add up several fields, compare them, and much more. The logic for referencing individual fields is always the same. But Vaira can do a lot more than just add things up.

#### Operators

The plus sign is just one of many operators, meaning characters that have a very specific effect on your formula. In addition to **mathematical operators**, there are also **logical operators**, which are especially important for conditions (for example "&&", similar to AND in Excel, to check two fields at the same time). There are also the **functions** mentioned above (such as .sum(…)), which can be appended to field queries to handle more complex tasks. You'll find separate guides on these topics:

- [**Learn more about operators**](https://support.vaira.app/en/operators-for-calculations-and-automations-in-vaira-office?hsLang=en)
- [**Learn more about functions**](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira?hsLang=en)
- [**Learn more about conditions**](https://support.vaira.app/en/simple-conditions-calculations-and-field-commands?hsLang=en)
- [**Learn step by step how to set up a field formula**](https://support.vaira.app/en/how-do-i-calculate-fields-with-formulas?hsLang=en)

- [Welcome!](https://support.vaira.app/en/welcome#main-content)
- [Setup](https://support.vaira.app/en/setup#main-content)

    - [Users](https://support.vaira.app/en/setup#users)
    - [Support & customer portal](https://support.vaira.app/en/setup#support-customer-portal)
    - [14-day full version trial](https://support.vaira.app/en/setup#14-day-full-version-trial)
    - [Account](https://support.vaira.app/en/setup#account)
- [Vaira App](https://support.vaira.app/en/vaira-app#main-content)

    - [Installation](https://support.vaira.app/en/vaira-app#installation)
    - [Getting started](https://support.vaira.app/en/vaira-app#getting-started)
    - [Viewing, searching & finding](https://support.vaira.app/en/vaira-app#viewing-searching-finding)
    - [Working on processes](https://support.vaira.app/en/vaira-app#working-on-processes)
    - [AR measurement](https://support.vaira.app/en/vaira-app#ar-measurement)
    - [GNSS measurement](https://support.vaira.app/en/vaira-app#gnss-measurement)
    - [3D models](https://support.vaira.app/en/vaira-app#3d-models)
    - [Troubleshooting](https://support.vaira.app/en/vaira-app#troubleshooting)
    - [Exporting](https://support.vaira.app/en/vaira-app#exporting)
- [Vaira Office](https://support.vaira.app/en/vaira-office#main-content)

    - [Getting started](https://support.vaira.app/en/vaira-office#getting-started)
    - [Managing users and roles](https://support.vaira.app/en/vaira-office#managing-users-and-roles)
    - [Workflows and processes](https://support.vaira.app/en/vaira-office#workflows-and-processes)
    - [Processes](https://support.vaira.app/en/vaira-office#processes)
    - [Working with measurements](https://support.vaira.app/en/vaira-office#working-with-measurements)
    - [Directories](https://support.vaira.app/en/vaira-office#directories)
    - [Importing](https://support.vaira.app/en/vaira-office#importing)
    - [Exporting](https://support.vaira.app/en/vaira-office#exporting)
    - [3D models](https://support.vaira.app/en/vaira-office#3d-models)
    - [Symbols](https://support.vaira.app/en/vaira-office#symbols)
    - [APIs](https://support.vaira.app/en/vaira-office#apis)
    - [Troubleshooting](https://support.vaira.app/en/vaira-office#troubleshooting)
- [Glossary](https://support.vaira.app/en/glossary#main-content)

    - [A](https://support.vaira.app/en/glossary#a)
    - [B](https://support.vaira.app/en/glossary#b)
    - [C](https://support.vaira.app/en/glossary#c)
    - [E](https://support.vaira.app/en/glossary#e)
    - [F](https://support.vaira.app/en/glossary#f)
    - [I](https://support.vaira.app/en/glossary#i)
    - [K](https://support.vaira.app/en/glossary#k)
    - [O](https://support.vaira.app/en/glossary#o)
    - [S](https://support.vaira.app/en/glossary#s)
    - [T](https://support.vaira.app/en/glossary#t)
    - [V](https://support.vaira.app/en/glossary#v)
    - [W](https://support.vaira.app/en/glossary#w)

[![Vaira-Logo](https://support.vaira.app/hs-fs/hubfs/Vaira%20Design-Elemente/vaira%20logo%20top%20name%20bottom%20transparent.png?width=100&height=100&name=vaira%20logo%20top%20name%20bottom%20transparent.png "Vaira-Logo")](https://vaira.app)

Vaira UG (haftungsbeschränkt)  
Technologiepark 13  
33100 Paderborn

[Impressum](https://vaira.app/impressum)

<https://www.youtube.com/channel/UCmm_-1F1qeRlk25Y4gc82xw> <https://www.linkedin.com/company/34892117/> <https://www.facebook.com/VairaUG> <https://www.instagram.com/vaira.app/> <https://open.spotify.com/show/0triopkvbcf1vF8U3uPCau>

Copyright © 2026, Vaira UG (haftungsbeschränkt)