Ignore my previous reply. A combination of my first formula and your second one works wonders!

Many thanks Cutter