sort randarray

aggelos

New Member
Joined
Mar 22, 2023
Messages
9
Office Version
  1. 2021
Platform
  1. Windows
Hello everyone I need you help regarding sorting in an array. Let say that I create an array with command randarray(18,7,3,20) how can I sort the numbers that the smaller with obviously is 3 to be at the top left corner of the array and the biggest (20) be at the right bottom . I want the sort to be actually diagonally from lower to bigger in the 28X7 matrix
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Is this what you mean
Fluff.xlsm
IJKLMNO
1
23.1662383.2496713.4769083.6557353.7280113.7401113.801988
34.2410094.3696074.5724294.7478374.7973764.8455534.97087
45.5347215.5766535.6123245.7883136.1539556.1571136.287597
56.4204536.4225976.4363966.593546.6845616.7475556.752808
66.778376.8025046.930446.9776157.0625367.1344027.143363
77.4420157.4903747.8501157.912538.0267418.0275968.123305
88.2334328.2350858.2715768.318838.6445148.7442718.767553
98.8411288.945259.0096769.2684989.2721219.4200259.437652
109.5621179.5729499.6663359.7047869.7273819.7437089.910661
119.98931910.0016710.1342610.4759110.4840410.7005310.84898
1211.0158811.0162911.1747611.4318811.5992911.6306611.92843
1312.2732112.2826912.4962512.9037913.0869713.1478313.16799
1413.3967713.7405213.7443513.7499813.7573813.7723713.87091
1514.3049614.3465814.4415314.7801614.8926515.0617215.12644
1615.1766115.2888215.2945715.314916.1934416.3909516.4463
1716.5333616.6689616.7954716.9025916.9805417.1617717.16821
1817.2965417.385917.6351317.8879118.1163318.1872218.24182
1918.2512718.4422318.4777218.6291819.0256919.2681819.60018
Master
Cell Formulas
RangeFormula
I2:O19I2=WRAPROWS(SORT(RANDARRAY(126,,3,20)),7)
Dynamic array formulas.
 
Upvote 0
sorry for bother you again but my excel version that I have does not support wraprows command. Is it any other alternative way to do what I want?
 
Upvote 0
How about
Excel Formula:
=INDEX(SORT(RANDARRAY(126,,3,20)),SEQUENCE(18,7))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,138
Members
452,381
Latest member
Nova88

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