I have a Data Table that shows different accounting values in the rows with each column representing a monthly sum. The headers of each column in are the form of months (i.e. Jan-16, Feb-16). I am trying to create a new table that will allow me to calculate the sums for each year and yet another that will calculate monthly averages.
The original data table is named "dMonthlyData" and looks like:
Measurement 16-Jan 16-Feb Sales 2,000,000 3,000,000 Costs 1,500,000 1,750,000
The sumproduct formula I'm trying to use looks like: =SUMPRODUCT((dMonthlyData[#Data])*(dMonthlyData[Measurement]="Sales")*(YEAR(dMonthlyData[#Headers])=2016))
So, the criteria is to get the sum (or average) of all the data in a particular row that happen to be in the columns where the header has a 2016 date. Is this possible without doing a PivotTable?
Bookmarks