@dunfiddlin, I went with your code first because it looked like I could understand it the most. But when I tested it, it repeats values.
@españolito, I went with your code second and it also repeats values.

Any help?