Separate list of numbers into equal(ish) value columns

bobbych

New Member
Joined
May 22, 2008
Messages
36
I have a list of 49 4 digit numbers (Col B below).

I would like to sort them in to 7 (or any other number) of Columns where the sum of each small list are as close to each other as possible as seen in Cols C to I.

the sorting below was done on a an online site but I would like to have it on my desktop for when I'm offline, as I am sometimes.

Many thanks


packs (1).csv
BCDEFGHI
131663048310530613092313031083166
231303019309630523078293730813070
331082797279130182902280927502781
431052789266826812694274327482743
530962733265625902634270626492643
630922598264925812586262726132582
730812574259425752573260426062573
83078
9307019558195591955819559195561955519558
103061
113052
123048
133019
143018
152937
162902
172809
182797
192791
202789
212781
222750
232748
242743
252743
262733
272706
282694
292681
302668
312656
322649
332649
342643
352634
362627
372613
382606
392604
402598
412594
422590
432586
442582
452581
462575
472574
482573
492573
packs (1)
Cell Formulas
RangeFormula
C9:I9C9=SUM(C1:C8)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Here is one that isn't nearly as good as the online one.

The total data set and the number of columns have to divide equally or it will be a problem.

MrExcelPlayground11.xlsx
ABCDEFGHI
119672196011953319525195201952819524
2731663166313031083105309630923081
331303018301930483052306130703078
431082937290228092797279127892781
531052694270627332743274327482750
630962681266826562649264926432634
730922590259425982604260626132627
830812586258225812575257425732573
93078
103070
113061
123052
133048
143019
153018
162937
172902
182809
192797
202791
212789
222781
232750
242748
252743
262743
272733
282706
292694
302681
312668
322656
332649
342649
352643
362634
372627
382613
392606
402604
412598
422594
432590
442586
452582
462581
472575
482574
492573
502573
Sheet12
Cell Formulas
RangeFormula
C1:I1C1=MMULT(SEQUENCE(1,COUNT(B:B)/A2,1,0),C2#)
C2:I8C2=LET(x,B2:B50,z,A2,a,SEQUENCE(ROWS(x)/z,z),b,MOD(a-1,2*z)+1,c,IF(b>z,2*z+1-b,b),d,z*INT((a-1)/z),e,d+c,INDEX(x,e))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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