That looks like the sort of formula I need.
I’ll try it out later.

Many thanks.