Assign Percentages to Dynamic Ranks with Max and Min constraints

tjkramer

New Member
Joined
Aug 11, 2018
Messages
18
Office Version
  1. 2013
Platform
  1. Windows
I have 6 regions (Region A thru Region F). I have ranked each region based on population, with the most populated being ranked #1, and the least being #6. I want to "allocate" dollars to each of the 6 regions based on percentages. Each of the Regions A thru F has a maximum percentage that can be allocated and a minimum percentage that can be allocated. These maximum and minimum percentages may be changed, but the overall dollars to be allocated stays fixed. I need to write a formula that allocates the highest percentage/dollars to the region ranked #1, but stays within the Max/Min of that region, and then allocates to the second-ranked region and stays within the Max/min of that region, and continues to allocate to each of the 6 regions. Total allocation cannot be >100% and every allocation must be within the min/max. Any help would be greatly appreciated. Looking for an excel formula and not VisBasic or others.



1716830202082.png
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Upper area shows an approach for unsorted ranks, lower area is easier by far in case ranks are sorted (grey cells need to be kept empty):
MrExcel_Assign_Percentages_to_Dynamic_Ranks_with_Max_and_Min_connstraints.xlsx
PQRSTUVWXYZAAAB
2AllocatedTotal
3HubMinMaxRankEmpty!123456100,00%
4A10,00%35,00%40,00%0,00%0,00%10,00%0,00%0,00%10,00%
5B5,00%35,00%20,00%35,00%0,00%0,00%0,00%0,00%35,00%
6C5,00%20,00%60,00%0,00%0,00%0,00%0,00%5,00%5,00%
7D5,00%20,00%50,00%0,00%0,00%0,00%5,00%0,00%5,00%
8E5,00%30,00%130,00%0,00%0,00%0,00%0,00%0,00%30,00%
9F5,00%35,00%30,00%0,00%15,00%0,00%0,00%0,00%15,00%
10
11Allocated
12HubMinMaxRank
13E5,00%30,00%130,00%
14B5,00%35,00%235,00%
15F5,00%35,00%315,00%
16A10,00%35,00%410,00%
17D5,00%20,00%55,00%
18C5,00%20,00%65,00%
19
Tabelle1
Cell Formulas
RangeFormula
AB3AB3=SUM(AB4:AB9)
V4:AA9V4=IF(V$3=$T4,MIN($R4,100%-SUM($U$4:U$9)-SUMIFS($Q$4:$Q$9,$T$4:$T$9,">"&$T4)),0)
AB4:AB9AB4=SUM(V4:AA4)
U13:U18U13=MIN($R13,100%-SUM($Q14:$Q$19)-SUM($U$12:$U12))
 
Upvote 0
Solution
Thank you very much for the prompt reply and the excellent, easy-to-understand answer. Worked like a charm. You saved me a ton of time. Sincerely appreciate your efforts and professionalism. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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