A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi. I am an Excel user like you.
I copied your sample above and pasted it into a spreadsheet and Hans' formula didn't work for me either. The reason I found is that your entries v001, v002, and v003 in A2, B2, and C2 each have an extra space at the end so that Excel did not recognize them as a match. When the extra spaces were removed the formulas worked.
From your description above it appeared to me that you actually wanted Columns A:C to total by the rows rather than one total for each header. You can do that by entering the ranges by row rather than the entire table. Use this in A3, drag across and then down.
=SUM(IF($D3:$P3=A$2, $E3:$Q3))