Distribute formula

doriannjeshi

Active Member
Joined
Apr 5, 2015
Messages
301
Office Version
  1. 365
Platform
  1. Windows
Hello,
I need a formula that distributes amost evenly as in the first 2 cases

Book15
ABCDEFG
1QtyOP1OP2OP3OP4OP5OP5
210222211
325544444
418
59
68
726
818
910
101
112
128
1314
1412
1512
1610
178
184
1915
2047
2110
2225
2317
2410
254
2615
2710
286
2912
3020
3130
3220
3327
3415
356
3615
3710
384
3912
4025
4115
4210
435
4415
4520
4625
4716
4810
496
503
5130
5222
5310
548
5520
5630
574
583
598
6013
6112
6210
637
645
654
6610
6725
6820
697
702
712
724
7315
7430
7525
7620
7712
786
794
802
811
8213
8327
8417
855
8610
8730
8817
895
903
918
9213
9312
9410
957
965
974
982
992
1002
1012
1024
1034
1044
1054
1063
1072
1082
1092
1102
1112
11220
11330
11412
11515
11627
11720
11813
11935
12025
1217
12210
12330
12417
1255
1264
12710
12816
12916
13014
1312
1326
13312
1348
1354
1368
13712
13816
13922
14024
14118
14212
1436
1442
1451
14625
14750
14840
14915
1505
15120
15230
1537
1542
1558
15616
15714
15810
1596
1604
1612
16215
16325
16420
16510
1662
1678
16814
16916
17012
1716
1724
17362
1742
1758
17614
17716
17812
1796
1804
18115
18225
18320
1845
1854
1868
18712
18814
18914
19010
1918
1924
1932
1941
19515
19627
19715
1985
1998
20027
20120
2027
20330
20415
20535
20620
20710
20817
20945
2102
2114
2128
21312
21414
21510
2166
2174
2182
2191
22020
22145
22235
22320
2248
22520
22624
22710
22815
22927
23015
2315
23215
23335
23428
23515
23615
23727
23815
2395
24015
24127
24215
2435
24410
24530
24617
2475
2482
2498
25016
25114
25210
2536
2544
2552
25625
25733
2584
25910
26025
26117
26210
2632
2648
26514
26616
26712
2686
2694
27010
27125
27218
2739
2748
27514
2763
2772
2788
27914
28016
28112
2826
2834
28415
28532
28615
28715
28835
28920
29010
29117
29245
29315
29430
29520
29610
2976
29812
2998
3004
30110
30227
30318
3047
3052
3068
30714
30810
30913
3108
3114
3123
3132
3142
3158
31616
31712
31814
3198
3206
3214
32210
32335
32420
3254
32610
32725
32815
3296
33010
33125
33230
33315
3348
33515
33610
Sheet1
 

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.
to be more clear, the quantity of column a should be distributed wholy in the other columns row by row as the first two examples
 
Upvote 0
Hi doriannjeshi,

This formula only works if columns only go to G as picture above and there's 6 spaces to distribute through.

Paste the following formula into Cell B2, and then drag to all other blank cells.

=ROUNDDOWN($A2/6,0)+IF(($A2-FLOOR($A2,6))>=(COLUMN()-1),1,0)

Good luck.

Thanks

1684439299148.png
1684439299148.png
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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