# Excel (Windows)

### Getting the connection URL

Once you've created your query, head over to the [queries module](https://app.tukanmx.com/visualizations/queries), and click on the export button for the query you wish to connect.

<figure><img src="https://1499304022-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkVlcNPFyJ2f7v0nyyEo%2Fuploads%2F8kYEZIDxxU7fYdNLtGg5%2Fimage.png?alt=media&#x26;token=029530f9-22af-46b6-a0cb-9aec0bce0e84" alt=""><figcaption></figcaption></figure>

Next, select the Excel tab and click the ***Copy link*** button to copy the query's "connection string" to your clipboard.

This "connection string" is what will allow Excel to connect directly to our database and ensure you always have the latest data available in your spreadsheet.

***

### Connecting Excel

{% hint style="success" %}
Please note that this is only done the **first time** you connect a query. Once you've established the connection, you only need to refresh the feed to get the latest data...
{% endhint %}

Open an Excel spreadhseet, and perform the following instructions:

1. Select the ***Data*** tab.
2. On the upper-left side of the panel, select the option ***Get data (from web)***.
3. A pop-up will appear with an input text box. Paste your connection string into the box and select OK.
4. Finally, validate the preview and load it into your spreadsheet.

<figure><img src="https://1499304022-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkVlcNPFyJ2f7v0nyyEo%2Fuploads%2FXsV0HMI79YOVpZJv9NO3%2Ftukan_excel_ms.gif?alt=media&#x26;token=cbfce451-eee4-4fa5-b1b5-25c1426a5779" alt=""><figcaption><p>Connecting your tukan query to an Excel spreadsheet (Windows).</p></figcaption></figure>

That's it. Your query should appear within a few seconds on your spreadsheet :partying\_face:.

***

### What's next?

Playing around with the data.

The process we followed imports your data as a [Table](https://www.ablebits.com/office-addins-blog/excel-table-tutorial/) in Excel. In case you modify your query, or wish to extract the latest data; simply hit *refresh* on the Table module.

<figure><img src="https://1499304022-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkVlcNPFyJ2f7v0nyyEo%2Fuploads%2FGsq7rkvNtdWELENvLjdl%2Fimage.png?alt=media&#x26;token=76916980-4674-4847-bc00-b4dc143a5f6e" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tukanmx.com/queries/connecting-to-a-query/excel-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
