Indirect() This function is used to return the reference to text reference provided. This function converts the text reference to actual...
Read More
Let us now try to formulate one single formula for subtotals that can be used with all the cells in the matrix. Here is the formula that I used for calculating the totals for each cell in the above matrix:
=SUM(IF($A$2:$A$29=$E6,IF($B$2:$B$29=F$5,$C$2:$C$29,0),0))
..and i entered this function as an array function, i.e. using CTRL+Shift+Enter
Let us understand what does each part of the formula does.
Now, you copy and paste this formula to other cells of the matrix and you will get the required results.
Note: The formula will take required cells from the column and row heads for validation by itself. This has been done through using 'Relative Reference' technique of writing formula in Excel. I will take this up in my later posts.
Read more...