xx
427 Points
Joined August 2008
Nagesh, VLOOKUP function can perfectly work for you. However while selecting the range of data you need to be adopt some trick.
Suppose you have the data in COL A2: B11. For your understaing I am showing the example in same sheet COL D2:E11. In your case you do not want fetch WHT value in case it repeats. So the formula would be here in E2 cell:
=IFERROR(VLOOKUP (D2,$A2:$B$11,2),"")
Why $A2 ? It will skip the beginging row one by one as you copy the formula in next rows
Why $B$11? It will freez the data range upto B11.
Why IFERROR ? If you use IFEEROR and "" it will replaced the value #NA with blank using "" sign
Please refer the attached file. Hope it clarifies your query.