Hi

Thanks for quick response.

I had found some other similar posts on this subject but none that seemed to explain the problem.

I have now modified the formulas as per your example, which is much tidier than my solution.

Thanks again.