Thanks for the solution Peter, I have used the "SUMPRODUCT"