# Робота з Google Таблицями

{% hint style="danger" %}
Увага!&#x20;

Для кращої продуктивності з вашими даними завантажте їх у таблиці MaviBot. Так ваші боти працюватимуть значно швидше й уникатимуть помилок, пов’язаних із запитами до Google Sheets.
{% endhint %}

## Для роботи з літерами стовпців&#x20;

c2n() | n2c() | addCols()

<details>

<summary>Опис</summary>

<mark style="color:за замовчуванням;background-color:blue;">**Щоб отримати номер стовпця за його літерою**</mark>

**c2n(str)**

Параметри:\ <mark style="color:red;">**!**</mark> **str** - номер стовпця в літерному позначенні

<mark style="color:за замовчуванням;background-color:blue;">**Щоб отримати літеру стовпця за номером**</mark>

**n2c(n)**

Параметр:\ <mark style="color:red;">**!**</mark> **n**- номер стовпця як числове значення

<mark style="color:за замовчуванням;background-color:blue;">**Щоб отримати літеру стовпця зі зміщенням від заданого стовпця**</mark>

**addCols(str, n)**

Параметри:\ <mark style="color:red;">**!**</mark> **str** - літера стовпця\
**n** - зміщення; щоб отримати номер стовпця ліворуч від вказаного, передайте від’ємне значення зміщення.

</details>

<details>

<summary>Приклади</summary>

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

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

</details>

<details>

<summary>Приклади</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/uk/chatbot/functions/kalkulyator/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.
