Jooel,

Downloaded your new code and get after a while of running it:
quote:

Script error: array reference out of bounds!
if $c[3][0]+$c[3][2]+$c[3][3]>$PMnewist[3][0]+$PMnewist[3][2]+$PMnewist[3][3]
and instr($c[3][1],@month)

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's