starfunker
New Member
- Joined
- Apr 5, 2018
- Messages
- 2
Hi all,
First time posting, sorry if I don't adhere 100% to the format but I'll try.
I have 2 sheets, sheet1 is a promotional grid with SKU codes in column 1, and 52 columns (weeks) to the right which will either be blank or have a promotional price for each sku code for that week.
SKU , wk1, wk2, wk3, wk4...
code1, $8 , , $6 , $8...
code2, $10, , , $10...
On sheet2 I have a column of SKU codes in let's say column1, and a different promotional price in columns1,2 & 3
and a count cell next to each of these columns which will tell me how many weeks of the year that SKU was promoted at that price.
SKU , Prom1, Count1, Prom2, Count2, Prom3, Count3
code1, $8 , 2 , $6 , 1 , $4 , 0
code2, $10, 2 , $8 , 0 ,(blank) ,(blank)
...
In sheet 2 I want to determine the figures in the Count columns by finding the matching SKU code in sheet1 then counting the instances along the row that the price in the Prom column appears.
The SKUs codes don't line up between sheet1 & sheet2 so I have tried to incorporate an array vlookup into a countif statement, e.g. =countif(vlookup(<sku code="">,$A:$AZ,{2,3,4,5,...},FALSE),
)
However the array vlookup seems to require a set of cells to output the values to, where as I want to store those values only for the purpose of of counting them as part of the formula.
Any help would be appreciated.
Thanks.</sku>
First time posting, sorry if I don't adhere 100% to the format but I'll try.
I have 2 sheets, sheet1 is a promotional grid with SKU codes in column 1, and 52 columns (weeks) to the right which will either be blank or have a promotional price for each sku code for that week.
SKU , wk1, wk2, wk3, wk4...
code1, $8 , , $6 , $8...
code2, $10, , , $10...
On sheet2 I have a column of SKU codes in let's say column1, and a different promotional price in columns1,2 & 3
and a count cell next to each of these columns which will tell me how many weeks of the year that SKU was promoted at that price.
SKU , Prom1, Count1, Prom2, Count2, Prom3, Count3
code1, $8 , 2 , $6 , 1 , $4 , 0
code2, $10, 2 , $8 , 0 ,(blank) ,(blank)
...
In sheet 2 I want to determine the figures in the Count columns by finding the matching SKU code in sheet1 then counting the instances along the row that the price in the Prom column appears.
The SKUs codes don't line up between sheet1 & sheet2 so I have tried to incorporate an array vlookup into a countif statement, e.g. =countif(vlookup(<sku code="">,$A:$AZ,{2,3,4,5,...},FALSE),
)
However the array vlookup seems to require a set of cells to output the values to, where as I want to store those values only for the purpose of of counting them as part of the formula.
Any help would be appreciated.
Thanks.</sku>