Thanks Bryce for the quick response. It looks good but theres one twist. The numbers in the array are random not fixed values. The script must be able to read any random number of values. Thanks again