Originally Posted by
snakeCZ
1st I don't understand why lookup_value is basically insensitive to input (any value gives me the same result).
2nd I have never seen slashes in range - how does it work ?
LOOKUP doesn't look for words. SEARCH is function that do that. If you use FIND instead of SEARCH then it will be sensitive to input (A vs. a etc).
Slashes are simple divisions. 1/2/3 is same as 1/6.
I will short it for explanations:
SEARCH formula look for each word in range E3:E25 within cell B3.
If it find it it will return position in the text.
For example: Search A,B and M within word BALL will return 2; 1; #VALUE! respectively (B on 2nd position, A on first position, M is not found).
(Actually, now that I look it it would be same if you use without 1/.... but you would need to change number 2 into some very big number)
1/{2;1; #VALUE!} will convert those numbers into number less or equal to 1 and errors.
Since LOOKUP function is ignoring errors it will return LAST value in the range (1 in this case) and coresponding value in range F3:F25 (if defined).
This will work only if you define all values in range. Since all values are not defined (some are blank) you will get wrong result because finding those values is always true.
So I need to add one more criteria that will not include blank cells.
=LOOKUP(2;1/SEARCH($E$3:$E$25;B3)/($E$3:$E$25<>"");$F$3:$F$25)
Bookmarks