Good old sumproduct, I always forget about that one! Much neater a solution especially if you will have many many rows of data.