#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Sort alphanumeric

I cant seem to sort 25th 10th 30th 21st 2nd etc entered data to display as
2nd 10th 21st 25th 30th in descending . All cells have been formated as text
before data entered. I am using Excel 2003
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Sort alphanumeric

Hi Arran

Try using a helper column. In the helper column, enter
=--(LEFT(A1,LEN(A1)-2))
and copy down as far as required.
Mark both columns and sort by the helper column.

--
Regards

Roger Govier


"Arran" wrote in message
...
I cant seem to sort 25th 10th 30th 21st 2nd etc entered data to display
as
2nd 10th 21st 25th 30th in descending . All cells have been formated
as text
before data entered. I am using Excel 2003



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Sort alphanumeric

Roger, many thanks that worked like a dream.

"Roger Govier" wrote:

Hi Arran

Try using a helper column. In the helper column, enter
=--(LEFT(A1,LEN(A1)-2))
and copy down as far as required.
Mark both columns and sort by the helper column.

--
Regards

Roger Govier


"Arran" wrote in message
...
I cant seem to sort 25th 10th 30th 21st 2nd etc entered data to display
as
2nd 10th 21st 25th 30th in descending . All cells have been formated
as text
before data entered. I am using Excel 2003




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Sort alphanumeric

You're very welcome. Thanks for the feedback.

--
Regards

Roger Govier


"Arran" wrote in message
...
Roger, many thanks that worked like a dream.

"Roger Govier" wrote:

Hi Arran

Try using a helper column. In the helper column, enter
=--(LEFT(A1,LEN(A1)-2))
and copy down as far as required.
Mark both columns and sort by the helper column.

--
Regards

Roger Govier


"Arran" wrote in message
...
I cant seem to sort 25th 10th 30th 21st 2nd etc entered data to
display
as
2nd 10th 21st 25th 30th in descending . All cells have been
formated
as text
before data entered. I am using Excel 2003






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Sort alphanumeric

Hoping this thread is not yet dead as I would like to expand on it.
What changes are required to the formula below, so that when there is just
text (abcde etc) rather than alpanumeric (25th) in A12 that I get the desired
"0" returned rather than"#Value" that I am getting.

=IF(A120,--(LEFT(A12,LEN(A12)-2)),0)

Taking this one step further. There will be random blank cells in ColA so
what would have to be added to the formula so that the sorted list is
displayed from the top of the sorted range down rather than the bottom up.

Help is always humbly received
"Roger Govier" wrote:

You're very welcome. Thanks for the feedback.

--
Regards

Roger Govier


"Arran" wrote in message
...
Roger, many thanks that worked like a dream.

"Roger Govier" wrote:

Hi Arran

Try using a helper column. In the helper column, enter
=--(LEFT(A1,LEN(A1)-2))
and copy down as far as required.
Mark both columns and sort by the helper column.

--
Regards

Roger Govier


"Arran" wrote in message
...
I cant seem to sort 25th 10th 30th 21st 2nd etc entered data to
display
as
2nd 10th 21st 25th 30th in descending . All cells have been
formated
as text
before data entered. I am using Excel 2003








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Sort alphanumeric

Hi Arran

Try the following
=IF(A1="",REPT("Z",255),IF(ISNUMBER(--LEFT(A1)),--(LEFT(A1,LEN(A1)-2)),A1))
This will make empty cells have 255 Z's in the helper column, and they
will sort to the end of the list
Text cells will be left exactly as they are.
Is this what you wanted?
If you want the blank cells to the top of the list, then change the
"REPT("Z",255) to 0


--
Regards

Roger Govier


"Arran" wrote in message
...
Hoping this thread is not yet dead as I would like to expand on it.
What changes are required to the formula below, so that when there is
just
text (abcde etc) rather than alpanumeric (25th) in A12 that I get the
desired
"0" returned rather than"#Value" that I am getting.

=IF(A120,--(LEFT(A12,LEN(A12)-2)),0)

Taking this one step further. There will be random blank cells in ColA
so
what would have to be added to the formula so that the sorted list is
displayed from the top of the sorted range down rather than the
bottom up.

Help is always humbly received
"Roger Govier" wrote:

You're very welcome. Thanks for the feedback.

--
Regards

Roger Govier


"Arran" wrote in message
...
Roger, many thanks that worked like a dream.

"Roger Govier" wrote:

Hi Arran

Try using a helper column. In the helper column, enter
=--(LEFT(A1,LEN(A1)-2))
and copy down as far as required.
Mark both columns and sort by the helper column.

--
Regards

Roger Govier


"Arran" wrote in message
...
I cant seem to sort 25th 10th 30th 21st 2nd etc entered data to
display
as
2nd 10th 21st 25th 30th in descending . All cells have been
formated
as text
before data entered. I am using Excel 2003








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
sort alphanumeric William Excel Discussion (Misc queries) 4 November 13th 06 11:11 PM
alphanumeric sort JLW Excel Discussion (Misc queries) 2 May 26th 06 06:03 PM
sort alphanumeric data yip New Users to Excel 2 November 18th 05 10:31 PM
Sort - alphanumeric. Brad New Users to Excel 2 October 31st 05 10:11 PM
Alphanumeric Sort Ray Excel Discussion (Misc queries) 5 May 20th 05 08:02 PM


All times are GMT +1. The time now is 09:40 AM.

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

About Us

"It's about Microsoft Excel"