After checking the availability of the cell value in the column, I need to get the cell value next to the corresponding cell . For example, I check if a value exists in cell A1 in column B and it is assumed that it matches B5 , then I want a value in cell C5 .
To solve the first half of the problem, I did this ...
=IF(ISERROR(MATCH(A1,B:B, 0)), "No Match", "Match")
... and it worked. Then, thanks to an earlier answer to SO , I also managed to get the row number of the corresponding cell:
=IF(ISERROR(MATCH(A1,B:B, 0)), "No Match", "Match on Row " & MATCH(A1,B:B, 0))
So, to get the value of the next cell, I tried ...
=IF(ISERROR(MATCH(A1,B:B, 0)), "No Match", C&MATCH(A1,B:B, 0))
... and it does not work.
What am I missing? How to add a column number to the row number returned to achieve the desired result?
matching excel
SNag Oct. 16 '12 at 12:55 2012-10-16 12:55
source share