Cliff Wells <logiplexsoftware at earthlink.net> wrote: Thanks both of you. I tried both solutions. Since some intervals are very high (1000000+), it takes too long to add them to a list. Cliff's solution was really fast, but it took a while to understand. :) Gustaf