This formula works a treat. Thank you so much guys for both quick and in both cases helpful answers

I'm off to work out exactly how this formaula works

thanks again