Hi Andrew,

What you've done is fantastic. Thank you.

If its not too much trouble for you please could you talk me through the following part of your formula:

max(index((G$1:g2=G3)*(D$1:D2=D3)*(D$1:D2=D3)

Thanks again.
Dan.