Distribute Qty Based on Ranked Groups-Excel O365

KeKemp

New Member
Joined
Nov 10, 2015
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to find a way to rank items based on group, need and 12 months sales without duplicate rank places, and then distribute the quantity ordered based on the ranking. Additioanlly, if the amount to distribute is greater than the total need, that extra needs to go to the first ranking.

Attached is a picture of what I am trying to do. I did find a way to rank using CountIfs but am mostly having issues trying to distribute once it has been ranked.

The need and L12 in the actual data set is based on a SQL query so I am open to any suggestions in Excel but the solution does need to stand up to a refresh.

There are the following situations that the solution needs to address (included in the image):

Need = Distribute Amount
Need > Distribute Amount
Need < Distribute Amount

Finally, I am not used to posting so if there is any missing information I appoloigze but am happy to add.

Thannk you.
 

Attachments

  • Distribute.PNG
    Distribute.PNG
    21 KB · Views: 15

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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