Thanks xld,

Is it better and defined function when I have 3500 records? and this kind of calculation will be used everywhere in my worksheet? (more than 20.000 calls)

SOrry for such a stupid question. Cause I dont have any idea about the benchmark between excel function and defined function.

once again, thanke