Hi 65string, Thanks for help, but result is not correct, when I put your formula in 1st it is showing 575 but it would be 505