Pivot table: Count text to decide rate of sale

MartinL

Well-known Member
Joined
Oct 16, 2008
Messages
1,141
Office Version
  1. 365
Platform
  1. Windows
I have a data table with 300000+ rows of data so have decided on a pivot table to solve all my problems...(lol)

everything has gone fine until I needed to solve ros (Rate of sale) which is determined by Total Sales / Number of stores a product is sold in.

I have been unable, so far to get the pivot table to tell me the number of stores.

The table looks like this:
Excel Workbook
ABCDE
1Store_NameProd_UPCProd_NamePeriod_EndSales
2NEWTON MEARNS265263BEANSPROUTS30-Apr-111.00
3SOLIHULL265263BEANSPROUTS30-Apr-111.00
4PRESTWICH265263BEANSPROUTS30-Apr-111.00
5DOUGLAS472630UK RUNNER BEANS LOOSE30-Apr-111.02
6TOTTENHAM COURT733106BROCCOLILOOSE30-Apr-111.03
Sheet2

and it should be taken into consideration that the date range covers 12 weeks. So in this instance 12 can be hardcoded if necessary into a calculated formula.

In total there are 380 store names
and 260 unique products
not every product is sold in every store.

How can I get ROS in my pivot table

Martin
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Have a look at the formula called GetPivotData, there are plenty of examples to see how it works, but I believe it should give you a solution.
 
Upvote 0
Have a look at the formula called GetPivotData, there are plenty of examples to see how it works, but I believe it should give you a solution.

Thanks Trevor<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
That GetPivotData blew my mind, I spent all weekend trying to plough my way through it and came up with zilch. I guess you are quite right in your suggestion, but it didn’t work out for me.<o:p></o:p>
<o:p></o:p>
Thanks for taking the time to give me the heads up though it was appreciated.<o:p></o:p>

I did find a long winded way round it, using two seperate pivot tables and then a lookup between the two.

Martin
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,183
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top