Thank you for your help, much appreciated. I'll try it out at work today.

I presume both the ^ and * symbols in the formula stand for squared?