Answer the question
In order to leave comments, you need to log in
How to write a search formula for text in a cell case sensitive?
At the very first glance, the task before me was not the most difficult.
You need to understand what properties are entered in the cell (Text separated by commas).
The difficulty is that some properties are part of other properties. (Key - "Key" will react to "Key", and to "Key Keeper", and to "Keys from the intercom".
I wrote this function
=OR(ARRAYFORMULA(EXACT($K$1;{SPLIT($D2;", ";0;1)})))
={"Key";ArrayFormula(IF(OFFSET(B1;1;;COUNT(A2:A))<>"";OR(ARRAYFORMULA(EXACT("Key";{SPLIT(OFFSET(D1;1;;COUNT (B2:B));", ";0;1)}))))))}
Answer the question
In order to leave comments, you need to log in
If the religion allows the use of scripts, then this will work:
/**
* Возвращает true, если value содержится в inData как ключ с разделителем delimiter
*
* @param {A:A} inData Исходный массив или одиночная строка
* @param {"key"} value Значение, которое ищется среди слов
* @param {1} delimiter Разделитель слов. По умолчанию - ","
* @return Возвращает true, если inData - одиночное значение или аналогичный массив, если inData - диапазон
* @customfunction
*/
function isContainText(inData,value,delimiter) {
var delimiter = delimiter || ",";
if (inData.map){
return inData.map(function(el){return isContainText(el,value,delimiter)});
}else{
var data = inData.split(delimiter);
if (!data) return false;
return data.indexOf(value)!=-1;
};
}
=isContainText(A:A;"Ключ";",")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question