Thank you all, all the formulas suggested work fine.