vba - excel sheet Comparing two different columns if match copy its next two cells into new column -
so... want compare column d a...
here in example ...
d1 matches a2 ... want b2 , c2 in e1 , f1 respectively ....
d2 matches a6 ... want b6 , c6 in e2 , f2 respectively ....
have recode of 2022 in column compared d...
want 1 formula dat can fulfill desire in 1 shot selecting comparing columns... thanks in advance
use index match formula achieve that.
in e1 cell write below formula
=iferror(index(b:b,match($d1,$a:$a,0)),"")
in f1 cell write below formula (you can fill right above formula)
=iferror(index(c:c,match($d1,$a:$a,0)),"")
Comments
Post a Comment