Hello! Sorry for my delay!
I read your post already 2 days ago. I changed a bit the formula that you suggested me at first and it worked well!
Anyway, I can try with the second one also!

Thanks a lot for you help!

Lina