Hi all,
I'm working on creating an Excel dashboard that shows which online promotions have driven the most revenue, transactions, average order value etc.
The data will be selected from two combo boxes, one for the week of the year, one for the calendar year.
The formula below worked fine before I began to add in 2016 data - now it returns duplicate values if the same promo code was used in both 2015 and 2016.
Cell B4 is the week, and Column B in the raw data tab is the list of weeks to which the other data pertains.
{=IF(ISERROR(INDEX('BRAND Raw Data'!$B$1:$E$10000,SMALL(IF('BRAND Raw Data'!$B$2:$B$10000=$B$4,ROW('BRAND Raw Data'!$B$2:$B$10000)),ROW(1:1)),3)),"",INDEX('BRAND Raw Data'!$B$1:$E$10000,SMALL(IF('BRAND Raw Data'!$B$2:$B$10000=$B$4,ROW('BRAND Raw Data'!$B$2:$B$10000)),ROW(1:1)),3))}
I have tried to add in IF('BRAND Raw Data'!$C$2:$C$10000=$C$4 with Column C being the list of years and C4 being the year selected, but I am going wrong somewhere!
The ROW(1:1) becomes (2:2), (3:3) and so on, to show all the promo codes that were used in a given week.
I'd really appreciate any help and I hope my explanation is clear.
Many thanks,
Matt
Bookmarks