you need the whole range for the index since your formula is looking for row and column
=INDEX(A3:F201,MATCH(A3,A3:A201,0),IF(D3<>"",COLUMN(D3),COLUMN(F3)))
red bit is row green bit column