Excel Formula to compare two columns and if match found check the next cell for a value and then return the result -
col1 col2 col3 hi t_m12345678 t_455462 t_m12345670 t_m12345678 bye t_m123456781 t_m12345670 t_m123 t_m589646 t_m894545 t_m123456781 t_m418554651 t_m4546565
i need compare col2 , col3; if match found need compare col1 match found , if there value in col1 should return value on below mentioned scenarios true in col4.
for example,
scenario 1: data
t_m12345678
present in col2 , col3 match found then, need check whether have value in col1 data in col2 , in case, yes (hi
value in col1) should printtrue
in col4.scenario 2: data
t_m12345670
present in col2 , col3 match found; need check whether have value in col1 data in col2 , in case, no should printtrue1
in col4.scenario 3: data
t_m589646
in col3 not present in col2 need printfalse
in col4.
since did not post expected outcome, created 2 additional columns (1 values in col2, other values in col3). following formulas work defined.
col2 value check:
=iferror(if(and(match(b2,$c$2:$c$8,0),isblank(a2)),"true1","true"),"false")
col3 value check:
=iferror(if(and(match(c2,$b$2:$b$8,0),isblank(a2)),"true1","true"),"false")
Comments
Post a Comment