I am doing a paired comparison analysis and have an Excel table where each cell contains one letter followed by one number. I want to sum the numbers for each unique letter. E.g. If there are 7 cells that begin with 'C', I want to sum the numbers that follow the 'C'. If there are 8 cells with the letter 'U', I want to sum the numbers in those three cells. I want the results of the sum for each unique letter, to be shown in a separate cell distinct to that letter (the yellow shaded boxes in my image below). If the data in my full table is contained in cells B5 to K14, I want the total of the 'C's to be in placed in cell B4. I want the total of the cells with 'U' to be placed in cell C5. I want the total of the next letter to be placed in cell D6, etc. (along the diagonal). I suspect I'll need to enter a separate formula into each of my target, diagonal cells ... but I am not clear on what that formula should be. I've read a little about SUMIF, but have not been able to master it so clearly am missing something. I'd be very grateful for any big brain help. Thankyou.