Sorry I did not notice the problems with your formula.
In the Index, you have a single cell, BP3, where an array is required.
Unfortunately, the workbook you posted does not correspond to the original posted formula. Also, in the workbook the formula in H3 is trying to match a date in A3 "12/05/2014" with dates below, but the latest date is "12/04/2014", so there can be no match. If there were, the formula for the posted worksheet might look like (if the index array includes column A):
=INDEX(A4:F201,MATCH($A$3,A4:A201,0),IF(D3<>"",4,6))
or maybe this, if the data is only returned from columns D or F:
=INDEX(D4:F201,MATCH($A$3,A4:A201,0),IF(D3<>"",1,3))
But, you will have to post a more accurate sample workbook.
Bookmarks