Thanx ghazalz and ujasmathew, I'll try both the formulae given by you.