# Работа с 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:красный;">**!**</mark> **str** - номер столбца в буквенной записи

<mark style="color:по умолчанию;background-color:blue;">**Чтобы получить букву столбца по номеру**</mark>

**n2c(n)**

Параметр:\ <mark style="color:красный;">**!**</mark> **n**- номер столбца в числовом виде

<mark style="color:по умолчанию;background-color:blue;">**Чтобы получить букву столбца со смещением от заданного столбца**</mark>

**addCols(str, n)**

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

</details>

<details>

<summary>Примеры</summary>

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

<div data-with-frame="true"><figure><img src="/files/e76e9ee4346b4ce11f712fb506e511bf87ff8490" 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/ru/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.
