Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AHMTD
 
Posts: n/a
Default sorting a text column

How do I sort a text column which includes A to Z then AA to AZ then BA to BZ
....
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

AHMTD,

For a list starting in cell A1, and extending down column A, you will need
two helper columns. In cell B1, use the formula

=LEN(A1)

In cell C1, use the formula

=LEFT(A1,1)

and copy both those cells down to match your list.

Then select all three columns, and sort first based on Col B Ascending, then
Col C Ascending, and finally, Col A ascending.

HTH,
Bernie
MS Excel MVP


"AHMTD" wrote in message
...
How do I sort a text column which includes A to Z then AA to AZ then BA to

BZ
...



  #3   Report Post  
RagDyeR
 
Posts: n/a
Default

If you will be doing this often, you can create a "custom list" which will
enable you to do a simple sort using options.

Create your list in a column, then select the entire list, then.
<Tools <Options <CustomLists

Since your list is already selected, just click on the "Import" button, then
<OK.

Now, when it comes time to sort, click the "options" button in the Sort
window,
Choose your list in the key sort window,
Then <OK <OK
And you're done !
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
AHMTD,

For a list starting in cell A1, and extending down column A, you will need
two helper columns. In cell B1, use the formula

=LEN(A1)

In cell C1, use the formula

=LEFT(A1,1)

and copy both those cells down to match your list.

Then select all three columns, and sort first based on Col B Ascending, then
Col C Ascending, and finally, Col A ascending.

HTH,
Bernie
MS Excel MVP


"AHMTD" wrote in message
...
How do I sort a text column which includes A to Z then AA to AZ then BA to

BZ
...




  #4   Report Post  
AHMTD
 
Posts: n/a
Default

Your answer was very helpful for me.
But it is not possible to do that operation for second or third sort
orders. (I looked the help, it was not possible).
Thank you
"RagDyeR" wrote:

If you will be doing this often, you can create a "custom list" which will
enable you to do a simple sort using options.

Create your list in a column, then select the entire list, then.
<Tools <Options <CustomLists

Since your list is already selected, just click on the "Import" button, then
<OK.

Now, when it comes time to sort, click the "options" button in the Sort
window,
Choose your list in the key sort window,
Then <OK <OK
And you're done !
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
AHMTD,

For a list starting in cell A1, and extending down column A, you will need
two helper columns. In cell B1, use the formula

=LEN(A1)

In cell C1, use the formula

=LEFT(A1,1)

and copy both those cells down to match your list.

Then select all three columns, and sort first based on Col B Ascending, then
Col C Ascending, and finally, Col A ascending.

HTH,
Bernie
MS Excel MVP


"AHMTD" wrote in message
...
How do I sort a text column which includes A to Z then AA to AZ then BA to

BZ
...





  #5   Report Post  
Ragdyer
 
Posts: n/a
Default

*SURE* you can ... just takes a little more effort.

Same procedure as if you wanted to sort on 5 keys, when XL has only 3
choices by default.

Since the "CustomList" can only be used for the first sort key, you'll have
to repeat the sort process as many times as you have sort orders, and you
must do them in reverse, from minor to major.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"AHMTD" wrote in message
...
Your answer was very helpful for me.
But it is not possible to do that operation for second or third sort
orders. (I looked the help, it was not possible).
Thank you
"RagDyeR" wrote:

If you will be doing this often, you can create a "custom list" which

will
enable you to do a simple sort using options.

Create your list in a column, then select the entire list, then.
<Tools <Options <CustomLists

Since your list is already selected, just click on the "Import" button,

then
<OK.

Now, when it comes time to sort, click the "options" button in the Sort
window,
Choose your list in the key sort window,
Then <OK <OK
And you're done !
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
AHMTD,

For a list starting in cell A1, and extending down column A, you will

need
two helper columns. In cell B1, use the formula

=LEN(A1)

In cell C1, use the formula

=LEFT(A1,1)

and copy both those cells down to match your list.

Then select all three columns, and sort first based on Col B Ascending,

then
Col C Ascending, and finally, Col A ascending.

HTH,
Bernie
MS Excel MVP


"AHMTD" wrote in message
...
How do I sort a text column which includes A to Z then AA to AZ then

BA to
BZ
...








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting excel to print text equal to a column LadyDiby Excel Discussion (Misc queries) 0 April 11th 05 09:27 PM
Sorting order - text and numbers jmt Excel Discussion (Misc queries) 2 April 4th 05 01:25 AM
Counting NUMBERS &/or TEXT from a column to other sheet ? Trixie Excel Worksheet Functions 4 March 3rd 05 07:59 PM
Search column and move text formula tommy Excel Discussion (Misc queries) 0 February 8th 05 06:55 PM
Creating multiple hyperlinks from a column where the text in the . OzGhostRiding Excel Worksheet Functions 5 December 14th 04 01:45 AM


All times are GMT +1. The time now is 01:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"