IF combined with VLOOKUP and CONTAINS
milla
-
Vaucluse Posted messages 27336 Registration date Status Contributeur Last intervention -
Vaucluse Posted messages 27336 Registration date Status Contributeur Last intervention -
Hello,
I want to create a formula like this:
if (Vlookup contains "test" then formula 1 else formula 2).
But when I write:
if(Vlookup(...;...;...)="*test*";formula1; formula2) it returns an error.
It seems that the issue comes from ="*test*".
I want to create a formula like this:
if (Vlookup contains "test" then formula 1 else formula 2).
But when I write:
if(Vlookup(...;...;...)="*test*";formula1; formula2) it returns an error.
It seems that the issue comes from ="*test*".
Use the "FIND" function
=IF(FIND("test",VLOOKUP(...,...,...,False))>=1;formula1;formula2)
The >= 1 means that the word can be written multiple times in the search.