thank you for your answer. But unfortunately it is not yet what I am searching for. Let me try to explain it a bit better :).
In fact, I would only have to know how I can convert the list on the left hand side, to the lists on right hand side .
Your solution almost works, however it does not work when a decimal number is involved)