Rotation

Lee733

New Member
Joined
Jan 22, 2018
Messages
24
Office Version
  1. 365
Platform
  1. Windows
I need a formula or formulas to determine which part each person would receive if the idea is to give them approximately the same number of parts.

I sort the parts by quantity and give the first six people the part with the highest quantity.

I need a formula that will look at the person with the lowest total quantity and give them the next part.

The correct answer is below but it manual done. I can't figure out what formulas I could use to get the correct result.

Debbie

1713278330506.png
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try
in C15
Excel Formula:
=XLOOKUP(MIN(XLOOKUP(SEQUENCE(6),C$2:C14,D$2:D14,0,0,-1)),D$2:D14,C$2:C14,,0)

and in D15
Excel Formula:
=MIN(XLOOKUP(SEQUENCE(6),C$2:C14,D$2:D14,0,0,-1))+B15
These formulas works after the first 6 lines have been correctly populated

Cartel1
ABCD
1PartQuantitySix Реор1е
2181808938019380
3184217888028880
4184320766637666
5181703710347103
6184319672756727
7181702607166071
81842064588610659
91818074569511296
101842163895410998
11182015232639992
121820112133211013
131818092056111436
141817041615311607
151820131234611893
161820141030412028
17181701890211903
18181805879512175
19182010838112274
20184318781312388
21182012177612070
22TOTALS7283872838
23
Foglio2
Cell Formulas
RangeFormula
C8:C21C8=XLOOKUP(MIN(XLOOKUP(SEQUENCE(6),C$2:C7,D$2:D7,0,0,-1)),D$2:D7,C$2:C7,,0)
D8:D21D8=MIN(XLOOKUP(SEQUENCE(6),C$2:C7,D$2:D7,0,0,-1))+B8
 
Upvote 0
I entered your formula in D9 and it is adding 6071+4569 = 10,640 because it is taking person #6 again. I am doing something wrong.
 
Upvote 0
The formulas I gave are for line 15
Then you may copy them backword (up to line 8)
Or you can copy the formula for line 9 from the XL2BB minisheet I attached
 
Upvote 0
=XLOOKUP(MIN(XLOOKUP(SEQUENCE(6),C$2:C14,D$2:D14,0,0,-1)),D$2:D14,C$2:C14,,0)

This is the formula that I used in C15 and it give the result as 3.
 
Upvote 0
Can you provide al least an image of your data, with coordinates?
 
Upvote 0
C9 - =XLOOKUP(MIN(XLOOKUP(SEQUENCE(6),C$2:C8,D$2:D8,0,0,-1)),D$2:D8,C$2:C8,,0)
D9 - =MIN(XLOOKUP(SEQUENCE(6),C$2:C8,D$2:D8,0,0-1))+B9
 
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,617
Members
449,109
Latest member
Sebas8956

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