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.