Hello cynx,
Try COUNTIF as I suggested above, that will work as long as the columns are contiguous, i.e. form a single range, otherwise you can use 2 or more MATCH functions for non-contiguous columns, e.g.
=IF(COUNT(MATCH(D2,A2:A50000,0),MATCH(D2,C2:C50000,0)),"Present","Not Present")
barry