Hello,
Some of our customers have their own specific price list and I need to reorganize it to make a standardized price list by level. For example, if an item 'Uniform A' is in many of our customers price list, I'd like to get the top 3 values and put the price information in those new three pricelist, let's call it 1) Gold 2) Diamond 3) Platinum for convenience.
What makes it more complicated is that I want to exclude the specific price that is applied to only one or two customers because that doesn't really represent the general pricelist.
The data structure I have looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Item[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]G1[/TD]
[TD]Uniform A[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]G2[/TD]
[TD]Uniform A[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Shoes A[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Shoes B[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Shoes C[/TD]
[TD]55[/TD]
[/TR]
[TR]
[TD]G3[/TD]
[TD]Uniform A[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And what I need to see in the final version looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Pricelist[/TD]
[TD]Item[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Platinum[/TD]
[TD]Uniform A[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Diamond[/TD]
[TD]Uniform A[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Would there be an efficient way to reorganize the data? Please help me. You can find the real data in the link. I've done my best and you can find the order of my work under each tab.
https://drive.google.com/file/d/0B6f6OaKsH5OJQkx0MmlMVU5PSkk/view?usp=sharing
Some of our customers have their own specific price list and I need to reorganize it to make a standardized price list by level. For example, if an item 'Uniform A' is in many of our customers price list, I'd like to get the top 3 values and put the price information in those new three pricelist, let's call it 1) Gold 2) Diamond 3) Platinum for convenience.
What makes it more complicated is that I want to exclude the specific price that is applied to only one or two customers because that doesn't really represent the general pricelist.
The data structure I have looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Item[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]G1[/TD]
[TD]Uniform A[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]G2[/TD]
[TD]Uniform A[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Shoes A[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Shoes B[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Shoes C[/TD]
[TD]55[/TD]
[/TR]
[TR]
[TD]G3[/TD]
[TD]Uniform A[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And what I need to see in the final version looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Pricelist[/TD]
[TD]Item[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Platinum[/TD]
[TD]Uniform A[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Diamond[/TD]
[TD]Uniform A[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Uniform B[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Would there be an efficient way to reorganize the data? Please help me. You can find the real data in the link. I've done my best and you can find the order of my work under each tab.
https://drive.google.com/file/d/0B6f6OaKsH5OJQkx0MmlMVU5PSkk/view?usp=sharing