Useful VBA macro for MS Excel
Функция Y_X производит линейную интерполяцию значения Y из диапазона ячеек yValues в зависимости от значения x, которое сверяется со значениями X из диапазона ячеек xValues. Диапазоны xValues и yValues должны быть одинакового размера.
The Y_X function performs a linear interpolation of the Y value from the yValues cell range depending on the x value, which is checked against the X values from the xValues cell range. The xValues and yValues ranges must be the same size.