Nov 26 2021 05:46 PM - edited Nov 26 2021 05:55 PM
Hello,
I've been trying to figure out the syntax for my formula but I can't. I need your help.
Okay, here is what I am trying to do:
IF a value is find in a given range do another if(match) then if another value is find that range do another if(match) so on... But for each specific 'if' if the value is not found then set the value of the cell "sth".
=IF(MATCH(Names!A2,S17:S20,0),IF(MATCH(Names!A3,S17:S20),IF(MATCH(Names!A4,S17:S20),"sth","sth1","sth2")
This is what I've been tinkering with but I can't get it to work. Where should I put the value if false for every if?
So if first one evaluates true, the true condition of that statement is another if statement. in that statement there is another if statement. for each if statement I need to set the value to sth if it evaluates false then stop there. I'm having trouble placing the false portion of each if.
Am I making any sense?
Nov 27 2021 12:32 AM
What do you want to return if the third match is found?
Nov 27 2021 02:35 AM
SolutionAs variant
=IF( ISNA( MATCH( Names!A2, S17:S20, 0 ) ),
IF( ISNA( MATCH( Names!A3, S17:S20, 0 ) ),
IF( ISNA( MATCH( Names!A4, S17:S20, 0 ) ),
"not found",
"sth2"
),
"sth1"
),
"sth" )
Dec 05 2021 09:03 PM