ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sort numbers by the first integer (https://www.excelbanter.com/excel-discussion-misc-queries/101911-sort-numbers-first-integer.html)

skiman123321

Sort numbers by the first integer
 

I have a column of numbers that I sort based on the first integer. For
example,
I want
2
4
77
555
777
11111

to sort as

11111
2
4
555
77
777

Is there a way to do that? Thanks.


--
skiman123321
------------------------------------------------------------------------
skiman123321's Profile: http://www.excelforum.com/member.php...o&userid=36890
View this thread: http://www.excelforum.com/showthread...hreadid=566074


[email protected]

Sort numbers by the first integer
 

skiman123321 wrote:

I have a column of numbers that I sort based on the first integer. For
example,
I want
2
4
77
555
777
11111

to sort as

11111
2
4
555
77
777

Is there a way to do that? Thanks.


Hi skiman123321

Use a helper column with =LEFT(A1,1) copied down as far as necessary.

Then sort the two columns based on the helper column.

Regards

Steve


Michael

Sort numbers by the first integer
 
Try using a helper column that has just the first digit: =left(a2,1), and
sort on that column. You can always delete or hide the column after sorting.

--
Sincerely, Michael Colvin


"skiman123321" wrote:


I have a column of numbers that I sort based on the first integer. For
example,
I want
2
4
77
555
777
11111

to sort as

11111
2
4
555
77
777

Is there a way to do that? Thanks.


--
skiman123321
------------------------------------------------------------------------
skiman123321's Profile: http://www.excelforum.com/member.php...o&userid=36890
View this thread: http://www.excelforum.com/showthread...hreadid=566074



skiman123321

Sort numbers by the first integer
 

Thank you very much.


--
skiman123321
------------------------------------------------------------------------
skiman123321's Profile: http://www.excelforum.com/member.php...o&userid=36890
View this thread: http://www.excelforum.com/showthread...hreadid=566074


Michael

Sort numbers by the first integer
 
Your very welcome. Thanks for the feed back.
--
Sincerely, Michael Colvin


"skiman123321" wrote:


Thank you very much.


--
skiman123321
------------------------------------------------------------------------
skiman123321's Profile: http://www.excelforum.com/member.php...o&userid=36890
View this thread: http://www.excelforum.com/showthread...hreadid=566074



Sloth

Sort numbers by the first integer
 
format the cells as text and then sort

"skiman123321" wrote:


I have a column of numbers that I sort based on the first integer. For
example,
I want
2
4
77
555
777
11111

to sort as

11111
2
4
555
77
777

Is there a way to do that? Thanks.


--
skiman123321
------------------------------------------------------------------------
skiman123321's Profile: http://www.excelforum.com/member.php...o&userid=36890
View this thread: http://www.excelforum.com/showthread...hreadid=566074




All times are GMT +1. The time now is 08:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com