Listing top 20 values with multiple data sets

leehuk1982

New Member
Joined
Mar 3, 2017
Messages
1
Hi all,

This is my first post and I'm in need of some desperate help please.

I have a table with the following data (this is example data):

ABCD
Branch CodeProduct CodeSupplier NameOver-Stocked
10
ALTA80125-0.00

<tbody>
</tbody>
SUP 120
10
ALTA802-0.00

<tbody>
</tbody>
SUP 110
10
ALTA805-201-0.00

<tbody>
</tbody>
SUP 125
10
ARD55-22K-0.00

<tbody>
</tbody>
SUP 295
10
ARDFA20-20K-0.00

<tbody>
</tbody>
SUP 2150
10
ARDFEAT-11K-0.00

<tbody>
</tbody>
SUP 2250
20ALTA80125-0.00SUP 145
20ALTA802-0.00SUP 160
20ALTA805-201-0.00SUP 120
20ARD55-22K-0.00SUP 2240
20ARDFA20-20K-0.00SUP 2100

<tbody>
</tbody>


I need to create a report that lists the top 20 Over-Stocked products for each Supplier, but the report must be specific to the Branch Code and also specific to the Supplier Name. The report needs to automatically display the top 20 for each branch / supplier / product when we refresh the data set.

To give you an example of what the final report would look like:

Branch CodeSupplier Name
10SUP 1

<tbody>
</tbody>

Product CodeOver-Stocked
ALTA80125-0.00

<tbody>
</tbody>
20
ALTA802-0.00

<tbody>
</tbody>
10

<tbody>
</tbody>
ETC
ETC

------NEW PAGE-----

Branch CodeSupplier Name
10SUP 2

<tbody>
</tbody>

Product CodeOver-Stocked
ARD55-22K-0.00

<tbody>
</tbody>
95
ARDFA20-20K-0.00150

<tbody>
</tbody>
ETC
ETC

------NEW PAGE-----

Branch CodeSupplier Name
20SUP 1

<tbody>
</tbody>

Product CodeOver-Stocked
ALTA80125-0.00

<tbody>
</tbody>
45
ALTA802-0.00

<tbody>
</tbody>
60

<tbody>
</tbody>
ETC
ETC

------NEW PAGE-----

Branch CodeSupplier Name
20SUP 2

<tbody>
</tbody>

Product CodeOver-Stocked
ARD55-22K-0.00

<tbody>
</tbody>
240
ARDFA20-20K-0.00100

<tbody>
</tbody>
ETC
ETC

Any help you could give would be greatly appreciated.

Thanks in advance,
Lee
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
how important is it to you that you have a new page on every change of branch and/or supplier ?

If you can live without any "new pages" I have a pivot table solution that gives the information you need ... buts its one continuous page
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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