troglodyte
New Member
- Joined
- Sep 9, 2014
- Messages
- 11
Hi all, long time lurker here with a rather frustrating issue!
I have a pivot table which has information regarding a percentage share of sales for products at varying prices over several quarterly cycles (for instance, shirts selling at £5, £10, £15 on Jan 1st, Apr 1st, Jul 1st, Oct 1st etc as a percentage of our entire portfolio of sales). I will include a sample to make this easier to understand.
I am trying to graph the portfolio share of our products at a given date. Over time, the basic price of our goods change so I want to show how this change in price affects the percentage of sales.
Here's an example of what I am working with (apologies if this formats poorly):
[TABLE="width: 1601"]
<tbody>[TR]
[TD]Item[/TD]
[TD]prices[/TD]
[TD="align: right"]01/01/2012[/TD]
[TD="align: right"]01/04/2012[/TD]
[TD="align: right"]01/07/2012[/TD]
[TD="align: right"]01/10/2012[/TD]
[TD="align: right"]01/01/2013[/TD]
[TD="align: right"]01/04/2013[/TD]
[TD="align: right"]01/07/2013[/TD]
[TD="align: right"]01/10/2013[/TD]
[TD="align: right"]01/01/2014[/TD]
[TD="align: right"]01/04/2014[/TD]
[TD="align: right"]01/07/2014[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Socks[/TD]
[TD="align: right"]£5.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.8%[/TD]
[TD="align: right"]0.0%[/TD]
[TD="align: right"]0.1%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Socks[/TD]
[TD="align: right"]£10.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Socks[/TD]
[TD="align: right"]£15.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.1%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£80.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.9%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£100.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.7%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£120.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.9%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£150.00[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.0%[/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£150.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.9%[/TD]
[TD="align: right"]0.6%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£175.00[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£200.00[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.6%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£225.00[/TD]
[TD="align: right"]0.3%[/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£250.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.6%[/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
What I want to know is which formulae would I use to return me the:
So far I have attempted combinations of the following to no avail:
I may have come close to the answer already but not written the formula in the correct order. I appreciate any help people can give me here, thank you for reading.
I have a pivot table which has information regarding a percentage share of sales for products at varying prices over several quarterly cycles (for instance, shirts selling at £5, £10, £15 on Jan 1st, Apr 1st, Jul 1st, Oct 1st etc as a percentage of our entire portfolio of sales). I will include a sample to make this easier to understand.
I am trying to graph the portfolio share of our products at a given date. Over time, the basic price of our goods change so I want to show how this change in price affects the percentage of sales.
Here's an example of what I am working with (apologies if this formats poorly):
[TABLE="width: 1601"]
<tbody>[TR]
[TD]Item[/TD]
[TD]prices[/TD]
[TD="align: right"]01/01/2012[/TD]
[TD="align: right"]01/04/2012[/TD]
[TD="align: right"]01/07/2012[/TD]
[TD="align: right"]01/10/2012[/TD]
[TD="align: right"]01/01/2013[/TD]
[TD="align: right"]01/04/2013[/TD]
[TD="align: right"]01/07/2013[/TD]
[TD="align: right"]01/10/2013[/TD]
[TD="align: right"]01/01/2014[/TD]
[TD="align: right"]01/04/2014[/TD]
[TD="align: right"]01/07/2014[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Socks[/TD]
[TD="align: right"]£5.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.8%[/TD]
[TD="align: right"]0.0%[/TD]
[TD="align: right"]0.1%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Socks[/TD]
[TD="align: right"]£10.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Socks[/TD]
[TD="align: right"]£15.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.1%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£80.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.9%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£100.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.7%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£120.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.9%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Shirt[/TD]
[TD="align: right"]£150.00[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.0%[/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£150.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.9%[/TD]
[TD="align: right"]0.6%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£175.00[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£200.00[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.6%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£225.00[/TD]
[TD="align: right"]0.3%[/TD]
[TD][/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"]0.1%[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.4%[/TD]
[TD="align: right"]0.1%[/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Trousers[/TD]
[TD="align: right"]£250.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.2%[/TD]
[TD="align: right"]0.3%[/TD]
[TD="align: right"]0.6%[/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
What I want to know is which formulae would I use to return me the:
- Share of the portfolio at a given date for a specific product (at its basic price), i.e. I want to know what the share of the portfolio was for trousers in January 2012 at its basic price (we can see here that it is 0.1%), what formula would I use to return this 0.1% value (and any other basic item portfolio share)?
- The basic price of an item in that quarter (if applicable). For instance the basic price of trousers in July 2012 is £175. What formula would I use to return this (and for any other item too)?
So far I have attempted combinations of the following to no avail:
- VLOOKUPS
- HLOOKUPS
- INDEX
- MATCH
- IF
I may have come close to the answer already but not written the formula in the correct order. I appreciate any help people can give me here, thank you for reading.