---
title: Formulas
description: Formulas are variables that calculate scores and averages that you can use in the results, email templates or outcomes of your survey. Discover formulas now 👉
---

[Skip to content](https://help.pointerpro.com/formulas#main-content)

[![Pointerpro-logo](https://help.pointerpro.com/hs-fs/hubfs/Pointerpro-logo.png?width=188&height=53&name=Pointerpro-logo.png)](https://pointerpro.com/)

- [Getting started](https://help.pointerpro.com/how-to-get-started-with-pointerpro)
- [Pricing](https://pointerpro.com/pricing)
- [Customer stories](https://pointerpro.com/case-studies)

Open main navigation

Close main navigation

- [Getting started](https://help.pointerpro.com/how-to-get-started-with-pointerpro)
- [Pricing](https://pointerpro.com/pricing)
- [Customer stories](https://pointerpro.com/case-studies)
- [New here? Explore what Pointerpro can do](https://www.pointerpro.com/)

[New here? Explore what Pointerpro can do](https://www.pointerpro.com/)

 How can we help you?

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

1. [Knowledge Base](https://help.pointerpro.com/?hsLang=en)
2. [Extra Options](https://help.pointerpro.com/extra-options?hsLang=en)
3. [Custom scoring](https://help.pointerpro.com/extra-options?hsLang=en#custom-scoring)

# Formulas

## Formulas is a great feature that allows you to calculate an average, custom score, average results, and any advanced calculations, using the data and items from your questionnaire. You can use the /\*-+() characteristics to create formulas that use variables like answers or quiz scores to calculate an average, for example.  

##### You'll need this:

- One of these Pointerpro plans:

![](https://assets.pointerpro.com/custom/help-guide/Pointerpro+icon+Grey.svg)  Professional         ![](https://assets.pointerpro.com/custom/help-guide/Pointerpro+icon+Orange.svg)  Enterprise         ![](https://assets.pointerpro.com/custom/help-guide/Pointerpro+icon+Orange.svg)  ReportR         ![](https://assets.pointerpro.com/custom/help-guide/Pointerpro+icon+Orange.svg)  DistributR 

---

 

DEFINITION

 

Formulas are variables that allow you to calculate score, averages, and any advanced calculations that you wish to, later on, use in your survey, final page, email template, or even PDF Report. This feature is built upon piping variables.

The following short video explains how you can combine formulas and custom scoring features.  

<iframe class="hs-responsive-embed-iframe" height="315" src="https://www.youtube.com/embed/fq0uqZCYKNE?si=-SUSb7NxGhUIyqv5" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;" width="560" data-service="youtube" data-identifyelement="507" data-hsprotectframeborder="0" data-hsprotectallowfullscreen=""></iframe>

 

##### On this help guide page:

1. [How to create a formula](https://help.pointerpro.com/formulas#how-to)
2. [Test your formula](https://help.pointerpro.com/formulas#test)
3. [Advanced formula calculations](https://help.pointerpro.com/formulas#advanced)
4. [How can your formula be used](https://help.pointerpro.com/formulas#how)
5. [How to use formulas to calculate averages](https://help.pointerpro.com/formulas#averages)<https://pointerpro.freshdesk.com/a/solutions/articles/35000059958/edit?lang=en&portalId=35000062269#how-to-use-formulas-to-calculate-averages>

---

#### 1. How to create a formula

1.1 [Creating a formula in the software](https://help.pointerpro.com/formulas#inside)

1.2 [Creating formulas outside the software](https://help.pointerpro.com/formulas#outside)

### 1.1 Creating a formula in the software

To create your own formula, make sure that your questionnaire is completed and that you have already enabled the [custom score](https://help.pointerpro.com/migration/knowledge/custom-score?hsLang=en). Then head straight to the Extra Options tab and select Formulas in the Custom Scoring section.

Click on the **Create formula** button and insert all the data. Let's see how you can do that.

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-03-38@2x-png.png?width=670&height=305&name=CleanShot%202026-09-26%20at%2009-03-38@2x-png.png)

1. Title: Name your formula. Make it something that will be clear to you, if you want to come back to edit it.
2. Variable: You cannot edit the variable but only copy it to use later on in outcomes, email templates, or results. This will actually return the result of the calculation wherever you use the variable.
3. The formula: Use the circled symbols to put your formula together or click Variables {x} to access the drop-down menu of questionnaire variables that you can use. For example, you could write:  
   \*|q1\_custom\_score|\*\*(\*|q2\_custom\_score|\*-\*|q3\_custom\_score|\*)

### 1.2 Creating formulas outside the software

Now let's see how to build the formula outside the software.

TIP

 

If you are looking for an example file to import your formulas, you can download one [here.](https://assets.surveyanyplace.com/app/v3/formulas/import_formulas_example.csv)

If you are using Aggregated reports, you can use this [example](https://docs.google.com/spreadsheets/d/1S939j5jGuDdzjP6VYV9rU6WV-CL0AX3yrhN6DoqeV-M/edit#gid=0).

Click** Import formulas** to get started.

 

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-04-42@2x-png.png?width=260&height=116&name=CleanShot%202026-09-26%20at%2009-04-42@2x-png.png)

Select the File you want to upload. Note that the headers in the CSV file should be:

- Title
- Formula
- Include all survey responses in this formula calculation
- Rounded
- Recalculate formula on report generation (add this header only if you have the [Aggregated reports](https://help.pointerpro.com/migration/knowledge/aggregate-report-types-explained?hsLang=en) feature)
- Apply predefined filter when requesting report (add this header only if you have the Aggregated reports feature) 

#### 2. Test your formula

To test out how your setup will work, just click Test and your calculation will be displayed below based on a response you can select.

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-06-34@2x-png.png?width=670&height=465&name=CleanShot%202026-09-26%20at%2009-06-34@2x-png.png)

WARNING

 

You need at least ONE response in order for your test to work, as the test will be based on the last response that meet the filter criteria.

#### 3. Advanced formula calculations

If you want to add more advanced calculations, you can use different variables:

- \*|q1\_custom\_score|\* - the score value for the specific question the respondent gets (in this case q1).
- \*|total\_custom\_score|\* - the value of all custom scores for all questions together (the score of the respondent).
- \*|max\_possible\_custom\_score|\* - the maximum score for the whole questionnaire.
- \*|total\_custom\_score\_percentage|\* - the value of the custom score as a percentage compared to the max score.
- \*|qb1\_custom\_score|\* - the custom score value for the question block you have created (in this case qb1).
- \*|qb1\_max\_custom\_score|\* - the maximum total score for one question block.
- \*|q1\_field1\_response|\* - the response that is collected on the form field of question 1.
- \*|q1\_response|\*- the response of a question that the answer is numeric (in this case q1).

For advanced users, we recommend Math, a built-in object that has properties and methods for mathematical constants and functions. More information can be found [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math).

### How to insert **Math** into the formulas in Pointerpro?

From the list of Math calculation options, pick the one you need for your calculation. For example, if you need the platform to automatically return the "max" value for a series of numbers. Copy the the formula from the website like this:

**Math.max()**

Insert the series of numbers or variables from Pointerpro between the brackets, separated by comma, like the following example:

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-11-54@2x-png.png?width=670&height=332&name=CleanShot%202026-09-26%20at%2009-11-54@2x-png.png)

In this formula, we want the system to automatically return the maximum value of 4 variables (formulas). 

NOTE

 

Although it is possible to create advanced formulas using the Math object, the test function cannot evaluate these type of formulas. To test these formulas, you would be required to collect a new response for the questionnaire and look at the formula results.

#### 4. How can your formula be used?

After your formulas are created, you can use them in your outcomes, email templates, final screen, intro fields, PDF Reports, and so on. The purpose is to display the data without having to change it in the questionnaire.

As an example we will show how to create (4.1) an [outcome](https://help.pointerpro.com/migration/knowledge/outcomes?hsLang=en) that will be displayed based on the value of the formula, (4.2) send an [email](https://help.pointerpro.com/migration/knowledge/email-templates?hsLang=en) after survey completion, depending on the result, and (4.3) formulas displaying scores as percentages on the final screen.

4.1 [Outcome-based on formula](https://help.pointerpro.com/formulas#outcome)

4.2[ Email template based on formulas](https://help.pointerpro.com/formulas#template)

4.3[ Formulas to show scores in your final screens](https://help.pointerpro.com/formulas#scores)<https://pointerpro.freshdesk.com/a/solutions/articles/35000059958/edit?lang=en&portalId=35000062269#formulas-to-show-in-your-final-screen>

### 4.1 Outcome-based on formula

<iframe class="hs-responsive-embed-iframe" height="360" src="https://player.vimeo.com/video/310050824" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;" width="640" data-service="vimeo" data-identifyelement="555" data-hsprotectallowfullscreen="" data-hsprotectframeborder="0"></iframe>

 After you have created your formulas as described above, click on the Outcomes feature in Extra options. See [the Outcomes guide](https://help.pointerpro.com/migration/knowledge/outcomes?hsLang=en) for full details about setting up your Outcome screen. We'll just look at the final part, which is where the Formula function comes in. You'll need to select Show this outcome when a certain condition is met. From the drop-down menu, click Formula.

Now use the drop-down menus that will come up to choose which one you want to use, how it should be used, and what the values should be.

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-15-53@2x-png.png?width=670&height=244&name=CleanShot%202026-09-26%20at%2009-15-53@2x-png.png)

Click Apply and your Outcome is now set to be shown with the right formula value.

### 4.2 Email template based on formulas

Once you have saved your settings, click on the Email templates feature in Extra options. See [the email template guide](https://help.pointerpro.com/migration/knowledge/email-templates?hsLang=en) for full details about setting up your email templates. When you need to specify when to send the email, this is where the Formula function comes in. Just click on the arrow and select Formula.

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-19-10@2x-png.png?width=670&height=249&name=CleanShot%202026-09-26%20at%2009-19-10@2x-png.png)

Now you can choose which formula you want to be used and for which values you want the email to be sent out. Click Apply, and you're all set.

### 4.3 Formulas to show scores in your final screens

Formulas can also be used together with [custom scores](https://help.pointerpro.com/migration/knowledge/custom-score?hsLang=en) to create a final screen or outcome(s) where respondents will see their scores as a percentage for each set of questions. You can simply use the variables (see [section 1](https://pointerpro.freshdesk.com/a/solutions/articles/35000059958/edit?lang=en&portalId=35000062269#1)) to show the results in your outcome screen or final screen.

You can also use the variable \*|f\_result\_ranking\_table|\* to easily insert a table with results of all the formulas ordered from highest to lowest. The steps are similar to those shown in this video, with setting up custom scores and formulas.

WARNING

 

If you re-order or delete a question that has [question logic (rules)](https://help.pointerpro.com/migration/knowledge/question-logic?hsLang=en) attached to it, you'll see a pop-up screen that shows the impact of these changes.

#### 5. How to use formulas to calculate averages

If you're on the Enterprise or ReportR plan, you'll see a button underneath the formula box, which you can toggle to **include all survey responses in this formula calculation.**

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-21-36@2x-png.png?width=670&height=439&name=CleanShot%202026-09-26%20at%2009-21-36@2x-png.png)

Turning on this feature will allow calculations to be made using data from the survey to calculate averages, for example. This allows you to show data in the PDF report for the entire population or from all responses received rather than from just one response. 

NOTE

 

Formulas with “**Include multiple responses**” toggle on are only calculated on survey completion.

#### 6. How to use filter on data for formula average calculation

In the previous step, if you turn on the toggle to "Include multiple responses in this formula calculation", by default the formula takes into account all the responses to calculate the average. 

If you want to select only certain responses and calculate the average score among these responses, you can "apply filter" for this formula.

For example, if you want to calculate the average score of all the respondents from Asia Pacific, then you can create a filter for responses that said they are inAsia Pacific such as the example below:

![](https://help.pointerpro.com/hs-fs/hubfs/CleanShot%202026-09-26%20at%2009-22-16@2x-png.png?width=670&height=345&name=CleanShot%202026-09-26%20at%2009-22-16@2x-png.png)

You can set up filters based on demographics, teams, or locations etc. to calculate the average scores of different segments.

Formula filters are available on the [ReportR](https://surveyanyplace.com/reportr-personalized-pdf-reports/) and DistributoR plans. You can add custom filters so that the formula is only calculated for respondents who meet certain conditions. Read the full guide about [calculating formulas from all responses and using formula filters](https://help.pointerpro.com/migration/knowledge/formulas-using-all-responses-and-formula-filters?hsLang=en).

TIP

 

You can also toggle the button "Use rounded numbers" to round the numbers of your results.

If you are using the [Aggregated reports](https://help.pointerpro.com/migration/knowledge/aggregate-report-types-explained?hsLang=en) feature, then you will see some additional toggle buttons.

Those toggle buttons provide additional options to refine your formulas. More specifically:

- Recalculate Formula on Report Generation: When the report is requested, this setting triggers a recalculation of the formula in the backend. This ensures that responses meeting the filter criteria are accurately accounted for, providing access to the most recent data. This feature is useful when using a formula with a variable that can change over time such as response count. Note that this feature is available on request.
- Apply Predefined Filter When Requesting Report: Enabling this toggle is necessary in order to create predefined filters in your PDF.

**If your questionnaire has more than 99 formulas**, it may take a while for the PDF to be generated. Therefore, a feature is automatically activated and you have to input the Recipient's email in the final screen so that the respondent will receive the report via the email.

What's next?

- Use [question logic to add points to a formula](https://help.pointerpro.com/migration/knowledge/add-to-formula-with-question-logic?hsLang=en). Use this handy combination to calculate scores, keep a count (for example, how many times a respondent answered "yes" throughout the survey), or show different outcome screens for different formula results. 
- Add the [Formula KPI](https://help.pointerpro.com/migration/knowledge/previous-report-builder-formula-kpi?hsLang=en) widget to display the results of the formulas that you have just set up. You can use this widget to have a quick visual representation of your formulas. KPI stands for key performance indicator, a quantifiable measure of performance over time for a specific objective.
- Add the [Formula Ranking widget](https://help.pointerpro.com/migration/knowledge/formula-ranking-table?hsLang=en) to display the results of selected formulas ranked from lowest score to highest score or highest to lowest. The result of each formula that you choose to show will be displayed together with explanatory text one below the other.

- [Getting Started](https://help.pointerpro.com/getting-started?hsLang=en#main-content)

    - [Getting Started](https://help.pointerpro.com/getting-started?hsLang=en#getting-started)
    - [How To Guides](https://help.pointerpro.com/getting-started?hsLang=en#how-to-guides)
    - [Glossary](https://help.pointerpro.com/getting-started?hsLang=en#glossary)
- [Build & Design](https://help.pointerpro.com/build-design?hsLang=en#main-content)

    - [Intro Screen & Final Screen](https://help.pointerpro.com/build-design?hsLang=en#intro-screen-final-screen)
    - [Question Types](https://help.pointerpro.com/build-design?hsLang=en#question-types)
    - [Media & Variables](https://help.pointerpro.com/build-design?hsLang=en#media-variables)
    - [Design your survey](https://help.pointerpro.com/build-design?hsLang=en#design-your-survey)
    - [Campaigns](https://help.pointerpro.com/build-design?hsLang=en#campaigns)
    - [FAQ](https://help.pointerpro.com/build-design?hsLang=en#faq)
- [Extra Options](https://help.pointerpro.com/extra-options?hsLang=en#main-content)

    - [Text options](https://help.pointerpro.com/extra-options?hsLang=en#text-options)
    - [Question logic](https://help.pointerpro.com/extra-options?hsLang=en#question-logic)
    - [Custom scoring](https://help.pointerpro.com/extra-options?hsLang=en#custom-scoring)
    - [Quiz Options](https://help.pointerpro.com/extra-options?hsLang=en#quiz-options)
    - [Kiosk mode options](https://help.pointerpro.com/extra-options?hsLang=en#kiosk-mode-options)
    - [Data collection options](https://help.pointerpro.com/extra-options?hsLang=en#data-collection-options)
    - [Other options](https://help.pointerpro.com/extra-options?hsLang=en#other-options)
    - [Integrations & API](https://help.pointerpro.com/extra-options?hsLang=en#integrations-api)
    - [FAQ](https://help.pointerpro.com/extra-options?hsLang=en#faq)
- [Share & Results](https://help.pointerpro.com/share-results?hsLang=en#main-content)

    - [Sharing your questionnaire](https://help.pointerpro.com/share-results?hsLang=en#sharing-your-questionnaire)
    - [View Results](https://help.pointerpro.com/share-results?hsLang=en#view-results)
    - [Results Dashboard](https://help.pointerpro.com/share-results?hsLang=en#results-dashboard)
    - [Uploading and Downloading Results](https://help.pointerpro.com/share-results?hsLang=en#uploading-and-downloading-results)
    - [FAQ](https://help.pointerpro.com/share-results?hsLang=en#faq)
- [Report Builder](https://help.pointerpro.com/report-builder?hsLang=en#main-content)

    - [General](https://help.pointerpro.com/report-builder?hsLang=en#general)
    - [Widgets](https://help.pointerpro.com/report-builder?hsLang=en#widgets)
    - [Aggregate Reports](https://help.pointerpro.com/report-builder?hsLang=en#aggregate-reports)
    - [FAQ](https://help.pointerpro.com/report-builder?hsLang=en#faq)
    - [Legacy Report Builder \[deprecated\]](https://help.pointerpro.com/report-builder?hsLang=en#legacy-report-builder-deprecated)
- [Dashboard Builder](https://help.pointerpro.com/dashboard-builder?hsLang=en#main-content)

    - [General](https://help.pointerpro.com/dashboard-builder?hsLang=en#general)
    - [Widgets items](https://help.pointerpro.com/dashboard-builder?hsLang=en#widgets-items)
- [Distribution Portal](https://help.pointerpro.com/distribution-portal?hsLang=en#main-content)

    - [Configuration](https://help.pointerpro.com/distribution-portal?hsLang=en#configuration)
- [Management & Administration](https://help.pointerpro.com/management-administration?hsLang=en#main-content)

    - [Account & Billing](https://help.pointerpro.com/management-administration?hsLang=en#account-billing)
    - [GDPR compliance](https://help.pointerpro.com/management-administration?hsLang=en#gdpr-compliance)
    - [FAQ](https://help.pointerpro.com/management-administration?hsLang=en#faq)

[![Pointerpro-logo](https://help.pointerpro.com/hs-fs/hubfs/Pointerpro-logo.png?width=140&height=39&name=Pointerpro-logo.png "Pointerpro-logo")](http://pointerpro.com)

Can't find what you're looking for? Contact us at [support@pointerpro.com](mailto:support@pointerpro.com)

<https://facebook.com/pointerpro> <https://twitter.com/pointerproapp> <https://www.linkedin.com/company/pointerpro/>

Copyright © 2026, Pointerpro