# Заменить подстроку в выделенном диапазоне ячеек

![](/files/Q2z6Rs7d0BVWsrBOZbYY)

Данный шаблон этапа нужен для замены в выделенном диапазоне ячеек одного значения другим. Например, нужно число 5 заменить на 10. Или некую подстроку заменить на другую подстроку. Шаблон аналогичен команде Ctrl + H

![](/files/AKnS5j4gqTAq4FdrWuzs)

Шаблон включает следующие параметры:

* Выделенный диапазон ячеек листа книги Excel. Диапазон ячеек указывается 4 значениями: строка первой (левой-верхней) ячейки, столбец первой ячейки, строка последней (или правой-нижней) ячейки, столбец последней ячейки.
* Значение поиска. Что заменить
* Значение замены. На что заменить найденную строку


---

# 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.onerpa.ru/rpa-platforma-onerpa/shablony-etapov/shablony-etapov-ms-office/excel/zamenit-podstroku-v-vydelennom-diapazone-yacheek.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.
