Thank you very much, it worked perfectly.
Could you explain the formula for me, I'm a little bit lost on the way it works.

Thanks