Thank you very very much.
It took me some time to understand the formula.
(still I don't understand exactly what is happening, but it's working now)
I had to change the formula to my Dutch version of Excel (meaning that comma's had to be replaced with ;)
(this may probably help people with a Dutch or similar version of Excel)
Once again, thank you very very much