Hi guys

Thanks to both of you for replying so quickly, much appreciated.

I used the formula that daddylonglegs submitted and it worked a treat - now I can get on with this spreadsheet.

Once again thanks a million and I will be back next time I have an Excel problem.