Each week, I have to hit a moving target. The raw data comes to me in columns with item number, date, and activity. The activity for each SKU is listed by week beginning with the first week of the year. There's a YTD Total for each item at somewhat random intervals buried in the column. Not all items will have the same number of weeks represented but each item will have a Total. So each week, the column becomes longer.
I created this formula to add activity by SKU using SUMIF (which includes the YTD Total), then deduct the TYD Total for each SKU so that I'm not double counting using INDEX/MATCH.
{(SUMIF('2014'!$A$8:$A$1000,A3,'2014'!$G$8:$G$1000)-INDEX('2014'!$G$8:$G$1000,MATCH(A3&$M$1,'2014'!$A$8:$A$1000&'2014'!$C$8:$C$1000)))}
A3 is the item number
M1="Total"
2014 Column A contains the item numbers
2014 Column C contains the individual week and YTD Total
2014 Column G contains the activity by week
For some reason, regardless of where I place this formula in my column, I get the same value, that being the number in cell G458.
I know the SUMIF portion of the formula is working correctly.
Any help is greatly appreciated.
I created this formula to add activity by SKU using SUMIF (which includes the YTD Total), then deduct the TYD Total for each SKU so that I'm not double counting using INDEX/MATCH.
{(SUMIF('2014'!$A$8:$A$1000,A3,'2014'!$G$8:$G$1000)-INDEX('2014'!$G$8:$G$1000,MATCH(A3&$M$1,'2014'!$A$8:$A$1000&'2014'!$C$8:$C$1000)))}
A3 is the item number
M1="Total"
2014 Column A contains the item numbers
2014 Column C contains the individual week and YTD Total
2014 Column G contains the activity by week
For some reason, regardless of where I place this formula in my column, I get the same value, that being the number in cell G458.
I know the SUMIF portion of the formula is working correctly.
Any help is greatly appreciated.