https://msoffice-prowork.com/ispolzovanie-funkcii-agregat-aggregate-v-excel/
Использование функции АГРЕГАТ (AGGREGATE) в Excel