A big Thank you Neale for your solution to the problem. It works a treat:-) This will save me a load of time.

Just seen and read the way you went about solving this. I'll have to a closer look and brush up on my Maths.