# Trabalhando com o Google Sheets

{% hint style="danger" %}
Atenção!&#x20;

Para um melhor desempenho com seus dados, faça o upload deles para as tabelas do MaviBot. Dessa forma, seus bots funcionarão muito mais rápido e evitarão erros relacionados a requisições para o Google Sheets.
{% endhint %}

## Para trabalhar com letras de colunas&#x20;

c2n() | n2c() | addCols()

<details>

<summary>Descrição</summary>

<mark style="color:padrão;background-color:blue;">**Para obter um número de coluna pela sua letra**</mark>

**c2n(str)**

Parâmetros:\ <mark style="color:vermelho;">**!**</mark> **str** - número da coluna em notação por letra

<mark style="color:padrão;background-color:blue;">**Para obter uma letra de coluna pelo número**</mark>

**n2c(n)**

Parâmetro:\ <mark style="color:vermelho;">**!**</mark> **n**- número da coluna como um valor numérico

<mark style="color:padrão;background-color:blue;">**Para obter uma letra de coluna por deslocamento a partir de uma coluna fornecida**</mark>

**addCols(str, n)**

Parâmetros:\ <mark style="color:vermelho;">**!**</mark> **str** - letra da coluna\
**n** - deslocamento; para obter um número de coluna à esquerda da especificada, passe um valor de deslocamento negativo.

</details>

<details>

<summary>Exemplos</summary>

<div data-with-frame="true"><figure><img src="/files/4936feb851a7126c0184681663595f0e79258619" alt="" width="563"><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="/files/3a6a297858e3420a7d73d10f82b68ffe7892b333" alt="" width="375"><figcaption></figcaption></figure></div>

</details>

<details>

<summary>Exemplos</summary>

```
number=c2n('AAB')
string=n2c(54)
offset=addCols('AA',-1)
```

</details>


---

# 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.mavibot.ai/doc/pt/chatbot/functions/calculadora/sheets.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.
