How to reorganize and sort the data to get top 3 value of each group

BoardWalk

New Member
Joined
Aug 12, 2015
Messages
4
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
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Upvote 0
Hello Mr.Sergio,

Thanks for your help. It absolutely made my life much easier.:)

I have one more question though. If I want to count top 3 values that is applied to more than just one customer (column E in sheet 'Workbook' that you sent me), what else should I do?
 
Upvote 0
Hi Board
Sheet "final version" shows top 3 for a code (I think item is the product column C) not matter what the customer is, top 3 values that is applied to all customers in the sheet workbook.
Cheers
Sergio
 
Upvote 0

Forum statistics

Threads
1,223,677
Messages
6,173,794
Members
452,534
Latest member
autodiscreet

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