---
title: How to add formulas to the backend in Dataslayer
description: Did you know that Dataslayer allows using formulas on its backend?
---

[Skip to content](https://support.dataslayer.ai/how-to-add-formulas-to-the-backend-in-dataslayer#main-content)

- [English](https://support.dataslayer.ai/how-to-add-formulas-to-the-backend-in-dataslayer)
- [Español](https://support.dataslayer.ai/es/cómo-agregar-fórmulas-al-backend-en-dataslayer)

English

Show submenu for translations

[![Dataslayer](https://support.dataslayer.ai/hs-fs/hubfs/Dataslayer_New_Logo.png?height=35&name=Dataslayer_New_Logo.png)](https://www.dataslayer.ai/)

Open main navigation

Close main navigation

- - [English](https://support.dataslayer.ai/how-to-add-formulas-to-the-backend-in-dataslayer)
    - [Español](https://support.dataslayer.ai/es/cómo-agregar-fórmulas-al-backend-en-dataslayer)

  English
  
  Show submenu for translations

 Hello. How can we help you?

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

1. [Knowledge base](https://support.dataslayer.ai/?hsLang=en)
2. [Google Sheets](https://support.dataslayer.ai/google-sheets?hsLang=en)

July 15, 2024

# How to add formulas to the backend in Dataslayer

## Did you know that Dataslayer allows using formulas on its backend?

This is a very useful functionality if you have to quickly change a date range or some filters.  
Imagine not having to open the extension to modify date ranges or filters in an already-created query... **Wish granted!** 

***Important:***

- *Columns from A to L, from AD to AM, and AO in the DataslayerQueries sheet don't support formulas.*
- *If you have put a formula in any field, for example in the dates, **you should not modify those fields from the Dataslayer extension,** since in that case there may be discrepancies and the new value will not be updated in the DataslayerQueries sheet.*

Let's see an example:

### **Let's create a formula with a date range - you will be able to change a date range very quickly in any of your queries made with Dataslayer!**

In steps 1 to 4, you can see how to add a custom formula (named range) in Google Sheets. You can skip these steps if you already have custom formulas created.

 1\. Click on the down arrow at the top left of the document where the cell number is detailed.

2\. Click on the "Manage Named Range" option at the bottom of the drop-down.

![8](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/8.png?width=688&height=252&name=8.png)

3.  The "Named range" sidebar will open at the right of the document. Click on "+Add a range".

![9](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/9.png?width=688&height=252&name=9.png)

4\. Create your formula for each cell:

![12](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/12.png?width=688&height=252&name=12.png)

**If you already have custom formulas created, you can skip the first part and dive directly here!**

5\. Now you can create a normal query with Dataslayer, with the date range you want:

![13](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/13.png?width=688&height=252&name=13.png)

6\. Let's go now to the "[DataslayerQueries](https://support.dataslayer.ai/how-to-find-the-query-sheet?hsLang=en)" hidden sheet, and take a look at the "N" and "O" columns. Here we'll find our date range previously selected:

![14](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/14.png?width=688&height=252&name=14.png)

7\. We'll proceed by changing the date range to the custom formulas we have created before: 

![15](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/15.png?width=688&height=252&name=15.png)

![17](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/17.png?width=688&height=252&name=17.png)

![18](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/18.png?width=688&height=252&name=18.png)

\- Once both cells have been updated with the custom formulas, they will show the updated information:

![19](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/19.png?width=688&height=252&name=19.png)

8\. Now you can refresh this query in Dataslayer. Notice the results: the date range and the whole table has been updated!

 

![20](https://support.dataslayer.ai/hs-fs/hubfs/Add%20Formulas/20.png?width=688&height=252&name=20.png)

This functionality allows digital marketers to directly change any parameter of their queries very quickly!

As always, please get in touch with us via our live chat on [our website](http://dataslayer.ai/) or [via email](mailto:info@dataslayer.ai) if you still have doubts or questions. We are happy to help!

- [General](https://support.dataslayer.ai/general?hsLang=en)
- [Billing & Pricing](https://support.dataslayer.ai/billing-pricing?hsLang=en)
- [Data Sources](https://support.dataslayer.ai/data-sources?hsLang=en)
- [Blended Connectors](https://support.dataslayer.ai/blended-connectors?hsLang=en)
- [Google Sheets](https://support.dataslayer.ai/google-sheets?hsLang=en)
- [Microsoft Excel](https://support.dataslayer.ai/microsoft-excel?hsLang=en)
- [Spreadsheets](https://support.dataslayer.ai/spreadsheets?hsLang=en)
- [Looker Studio](https://support.dataslayer.ai/looker-studio?hsLang=en)
- [Big Query](https://support.dataslayer.ai/big-query?hsLang=en)
- [API Query Manager](https://support.dataslayer.ai/api-query-manager?hsLang=en)
- [Power BI](https://support.dataslayer.ai/power-bi?hsLang=en)
- [Amazon S3](https://support.dataslayer.ai/amazon-s3?hsLang=en)
- [Amazon Redshift](https://support.dataslayer.ai/amazon-redshift?hsLang=en)
- [Snowflake](https://support.dataslayer.ai/snowflake?hsLang=en#main-content)

    - [Marketplace](https://support.dataslayer.ai/snowflake?hsLang=en#marketplace)
- [Google Cloud Storage](https://support.dataslayer.ai/google-cloud-storage?hsLang=en)
- [Database](https://support.dataslayer.ai/database?hsLang=en)
- [Azure SQL](https://support.dataslayer.ai/azure-sql?hsLang=en)
- [Azure Storage](https://support.dataslayer.ai/azure-storage?hsLang=en)
- [Dataslayer Atlas](https://support.dataslayer.ai/dataslayer-atlas?hsLang=en)
- [Morpheus](https://support.dataslayer.ai/morpheus?hsLang=en)
- [AI Looker Studio Analyzer](https://support.dataslayer.ai/ai-looker-studio-analyzer?hsLang=en)
- [Dataslayer MCP](https://support.dataslayer.ai/dataslayer-mcp?hsLang=en)
- [Dataslayer GPT](https://support.dataslayer.ai/dataslayer-gpt?hsLang=en)
- [Dataslayer AI Chat](https://support.dataslayer.ai/dataslayer-ai-chat?hsLang=en)

[![Chill listening crop-3](https://support.dataslayer.ai/hs-fs/hubfs/Dataslayer_New_Logo.png?width=142&height=24&name=Dataslayer_New_Logo.png "Chill listening crop-3")](https://dataslayer.ai/)

Dataslayer.ai: Digital Marketing Reporting Made Easy

<https://www.linkedin.com/company/dataslayer/> <https://www.youtube.com/@dataslayers>

Copyright © 2026, DATASLAYER SL