Received solution from Herb which worked perfectly.

He provided a formula which I will allow him to explain as
it is well above my head.

Many thanks to all those who helped.

Keith