Reply
 
Thread Tools Display Modes
  #1   Report Post  
Fred
 
Posts: n/a
Default sorting alphanumerically in a table

What sorting you see:
A1C1
A1C10
A1C11
A1C2

But A1C 'TWO' really comes after A1C1.

Soes anyone know how to make it work properly?
Thanks,
Forrest




  #2   Report Post  
Jezebel
 
Posts: n/a
Default

The problem is that those strings are not numbers, so there's no direct way
to sort them as such. You need to split the sort value into the text prefex
and numeric suffix, and sort on those separately. Probably quickest to copy
the table to Excel and do it there -- add two columns to the right, the
first containing =Left(Ax,3) and the second containing =Mid(Ax,4,Len(Ax)-3).
Sort on your two new columns, then delete the added columns and paste the
lot back into Word.


"Fred" wrote in message
...
What sorting you see:
A1C1
A1C10
A1C11
A1C2

But A1C 'TWO' really comes after A1C1.

Soes anyone know how to make it work properly?
Thanks,
Forrest






  #3   Report Post  
Fred
 
Posts: n/a
Default


Thanks!

That will do it.

"Jezebel" wrote in message
...
The problem is that those strings are not numbers, so there's no direct

way
to sort them as such. You need to split the sort value into the text

prefex
and numeric suffix, and sort on those separately. Probably quickest to

copy
the table to Excel and do it there -- add two columns to the right, the
first containing =Left(Ax,3) and the second containing

=Mid(Ax,4,Len(Ax)-3).
Sort on your two new columns, then delete the added columns and paste the
lot back into Word.


"Fred" wrote in message
...
What sorting you see:
A1C1
A1C10
A1C11
A1C2

But A1C 'TWO' really comes after A1C1.

Soes anyone know how to make it work properly?
Thanks,
Forrest








Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting a table while keeping some related rows together Dan Corban Tables 7 January 20th 05 07:31 PM
Dragging table column resets Sedonakids Tables 0 January 12th 05 01:11 AM
Row height problem with table in table Stephanie T. Tables 0 November 23rd 04 03:35 PM
include all cells in sorting table Howie J. Tables 1 November 14th 04 02:27 PM
table caption numbering scottkinsey Tables 1 November 11th 04 11:47 AM


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

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"