use a vlookup instead, lookups aren't too great for large tables of data
=vlookup(d1, $a$1:$b$5,2,false)
that assumes that d1 is the cell you entered "d" into
the dollar signs allow you to copy the formula to other cells and not have the range of data you are looking at be changed