> For the complete documentation index, see [llms.txt](https://docs.quadratichq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quadratichq.com/formulas/getting-started.md).

# Getting started

Work with classic spreadsheet logic - math, references, and point and click manipulation for quick data analysis.

Get started with Formulas the same way as any other spreadsheet - click `=` on a cell and get started right away. Formulas are in-line by default.&#x20;

<figure><img src="https://2438361843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff1Y5UzPF2x1oIzVJbUK8%2Fuploads%2FHTQ9dPB22Zg1MoxOhvOx%2F1.gif?alt=media&amp;token=26cf9ac2-fcc3-4c1f-975b-32d6a9aaec93" alt="" width="563"><figcaption><p>In-line formulas in Quadratic</p></figcaption></figure>

You can also optionally use multi-line Formulas for those Formulas that need to be expanded to become readable.&#x20;

To open the multi-line editor either use / and select it in the cell type selection menu or use the multi-line editor button from the in-line editor as showed below.&#x20;

<figure><img src="https://2438361843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff1Y5UzPF2x1oIzVJbUK8%2Fuploads%2FaAS10a8Is66NYjUiMict%2FCleanShot%202024-05-15%20at%2009.24.02%402x.png?alt=media&amp;token=b35976c2-8040-484e-9199-54bf1a70b06e" alt=""><figcaption></figcaption></figure>

The multi-line editor becomes useful when Formulas become more difficult to read than the space afforded by the in-line editor. Example:

```sql
IF( Z0 > 10, 
    IF( Z1 > 10, 
        IF (Z2 > 10, 
            AVERAGE(Z0:Z2), 
            "Invalid Data",
        ),
        "Invalid Data", 
    ),
    "Invalid Data", 
)
```

Cells are by default referenced relatively in Quadratic. Use $ notation to do absolute references, similar to what you'd be familiar with in traditional spreadsheets. Learn more on the [Reference cells](/formulas/reference-cells.md) page.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td></td><td>Jump to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f449">👉</span> <strong>Reference cells</strong></td><td></td><td><a href="/formulas/reference-cells.md">Reference cells</a></td></tr><tr><td></td><td>Jump to: <br><span data-gb-custom-inline data-tag="emoji" data-code="1f4dc">📜</span> <strong>Formulas cheat sheet</strong></td><td></td><td><a href="/formulas/functions-and-operators.md">Functions and operators</a></td></tr><tr><td></td><td></td><td></td><td></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.quadratichq.com/formulas/getting-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
