Thanks that does exactly what I want. Understand the formula apart from the D4 prior to the index, can you explain please.