Help with sorting rows of numbers from small to large numbers

MrsFrankieH

Active Member
Joined
Mar 25, 2011
Messages
323
Office Version
  1. 365
Platform
  1. Windows
Hello all,

My operating system is Windows 10.
Samsung Tablet

Could someone please help me with a formula to sort rows of numbers in numerical order? I was told that my Excel had "limitations" and that's why I can't get the results I need. As you can see, I put a couple of sorted rows in cells on the right. The cells on the left are not sorted. I know if anyone can do it, most of you can. Thank you in advance.







MM.xlsx
ABCDEFGHIJKLM
1DateNumber 1Number 2Number 3Number 4Number 5
2Tuesday, June 7, 2022413445340434404153
3Friday, June 3, 202216112248591116224859
4Tuesday, May 31, 2022156364641
5Friday, May 27, 2022534035414
6Tuesday, May 24, 20223563668
7Friday, May 20, 20224033606959
8Tuesday, May 17, 2022412421765
9Friday, May 13, 20221144654341
10Tuesday, May 10, 20221519706120
11Friday, May 6, 20221652213370
12Tuesday, May 3, 20225727351915
Sheet1
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You can try, in I2:

Excel Formula:
=SORT(B2:F12,,,TRUE)
Hi Dave, the second time I tried it, it did sort the first line, but not the other lines.


MM.xlsx
ABCDEFGHIJKLM
1DateNumber 1Number 2Number 3Number 4Number 5
2Tuesday, June 7, 2022413445340434404153
3Friday, June 3, 202216112248592211591648
4Tuesday, May 31, 2022156364641646341156
5Friday, May 27, 2022534035414340145354
6Tuesday, May 24, 202235636686356836
7Friday, May 20, 202240336069596033594069
8Tuesday, May 17, 2022412421765212465417
9Friday, May 13, 202211446543416544411143
10Tuesday, May 10, 202215197061207019201561
11Friday, May 6, 202216522133702152701633
12Tuesday, May 3, 202257273519153527155719
Sheet1
Cell Formulas
RangeFormula
I2:M1290I2=SORT(B2:F1290,,,TRUE)
Dynamic array formulas.
 
Upvote 0
Copy this I2 formula down column I.

22 06 11.xlsm
BCDEFGHIJKLM
1Number 1Number 2Number 3Number 4Number 5
2413445340434404153
316112248591116224859
4156364641615416364
5534035414314405354
635636683566368
740336069593340596069
8412421765721244165
911446543411141434465
1015197061201519206170
1116522133701621335270
1257273519151519273557
Sort Rows
Cell Formulas
RangeFormula
I2:M12I2=SORT(B2:F2,,,1)
Dynamic array formulas.
 
Upvote 0
Solution
Another option ("borrowed" from Eric W) this assumes that the largest value will be 99, but that can be changed.
Fluff.xlsm
BCDEFGHIJKLM
1Number 1Number 2Number 3Number 4Number 5
2413445340434404153
316112248591116224859
4156364641615416364
5534035414314405354
635636683566368
740336069593340596069
8412421765721244165
911446543411141434465
1015197061201519206170
1116522133701621335270
1257273519151519273557
Data
Cell Formulas
RangeFormula
I2:M12I2=LET(Rng,B2:F12,r,ROWS(Rng),c,COLUMNS(Rng),m,MAX(Rng),MOD(SMALL(Rng+SEQUENCE(r,,100,100),SEQUENCE(r,c)),100))
Dynamic array formulas.
 
Last edited:
Upvote 0
Copy this I2 formula down column I.

22 06 11.xlsm
BCDEFGHIJKLM
1Number 1Number 2Number 3Number 4Number 5
2413445340434404153
316112248591116224859
4156364641615416364
5534035414314405354
635636683566368
740336069593340596069
8412421765721244165
911446543411141434465
1015197061201519206170
1116522133701621335270
1257273519151519273557
Sort Rows
Cell Formulas
RangeFormula
I2:M12I2=SORT(B2:F2,,,1)
Dynamic array formulas.

Hi Peter!! Woohoo it worked!!!! Thank you!!!
 
Upvote 0
Another option ("borrowed" from Eric W) this assumes that the largest value will be 99, but that can be changed.
Fluff.xlsm
BCDEFGHIJKLM
1Number 1Number 2Number 3Number 4Number 5
2413445340434404153
316112248591116224859
4156364641615416364
5534035414314405354
635636683566368
740336069593340596069
8412421765721244165
911446543411141434465
1015197061201519206170
1116522133701621335270
1257273519151519273557
Data
Cell Formulas
RangeFormula
I2:M12I2=LET(Rng,B2:F12,r,ROWS(Rng),c,COLUMNS(Rng),m,MAX(Rng),MOD(SMALL(Rng+SEQUENCE(r,,100,100),SEQUENCE(r,c)),100))
Dynamic array formulas.

Hi Fluff!!! How are you doing? It's good to see you again!! I tried your solution and it worked too!! I wish I could approve two methods that work!! Thank you so much my friend!
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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