Reply
 
Thread Tools Display Modes
  #1   Report Post  
Shehi_3
 
Posts: n/a
Default numeric sort in table

I have a table with two columns the first is a file number in the format of
(i.e.) 04-63, 04-64, etc. the second is text. I want to sort by the first
column and what happens is it puts for example 04-63 right before 04-632
instead of before 04-64. I have tried replacing the "-" with "." - no help -
I've tried sorting as text, numberic and also date with no luck. These
numbers are file numbers with the "04" being the year and the -# being the
next number in the sequence of files opened that year. As we close files we
enter the number in this table. I need them to read 04-1, 04-2, 04-3, etc.
through possibly 04-632 if we opened that many files that year. I can't get
them to sort by the first two numbers (99, 00, 01, 02, 03, 04, 05) and then
by the last set of numbers 1, 2, ...100,101,). Why is this so complicated?
Any suggestions?
Sandy
  #2   Report Post  
Jezebel
 
Posts: n/a
Default

This is "so complicated" because you've blundered with your "numbering"
scheme. Strings like "04-63" are not numbers, so they don't get sorted as
such. The quick fix is to insert another column, then split your strings
into two numbers, year in the first column, file number in the second. Then
sort on column 1, column 2.




"Shehi_3" wrote in message
...
I have a table with two columns the first is a file number in the format

of
(i.e.) 04-63, 04-64, etc. the second is text. I want to sort by the first
column and what happens is it puts for example 04-63 right before 04-632
instead of before 04-64. I have tried replacing the "-" with "." - no

help -
I've tried sorting as text, numberic and also date with no luck. These
numbers are file numbers with the "04" being the year and the -# being the
next number in the sequence of files opened that year. As we close files

we
enter the number in this table. I need them to read 04-1, 04-2, 04-3,

etc.
through possibly 04-632 if we opened that many files that year. I can't

get
them to sort by the first two numbers (99, 00, 01, 02, 03, 04, 05) and

then
by the last set of numbers 1, 2, ...100,101,). Why is this so

complicated?
Any suggestions?
Sandy



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
Can't sort table alphabetically Tiffany Microsoft Word Help 1 January 21st 05 10:17 PM
help with table sort when repeating heading on same page genoaj Microsoft Word Help 1 January 18th 05 03:01 AM
Sort Table Amy Tables 1 November 14th 04 02:28 PM
table caption numbering scottkinsey Tables 1 November 11th 04 11:47 AM
How do I sort in a table in word 2000? Kathy Tables 2 October 30th 04 01:39 AM


All times are GMT +1. The time now is 12:30 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"