Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SJC SJC is offline
external usenet poster
 
Posts: 22
Default Sort function problem

I have a spreadsheet which displays data in rows for about 350 different
clients. Each client has an assigned number which leads each row. When I
sort the rows so that they will appear in numerical order, the majority of
the rows are sorted correctly, but about 30 rows are brought to the top of
the spreadsheet out of order. Besides cutting and pasting them where they
belong, are there any other options for fixing this sorting problem?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 791
Default Sort function problem

Must likely those clients have a leading blank space, what you should do is
do a find and replace of the blank space before you do the sorting.
Or insert a column and place the trim function in it then do a copy paste
values on the source columns to eliminate non printable characters then
proceed to sort.

Example
A1 B1
123 =Trim(a1)




--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"SJC" wrote:

I have a spreadsheet which displays data in rows for about 350 different
clients. Each client has an assigned number which leads each row. When I
sort the rows so that they will appear in numerical order, the majority of
the rows are sorted correctly, but about 30 rows are brought to the top of
the spreadsheet out of order. Besides cutting and pasting them where they
belong, are there any other options for fixing this sorting problem?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SJC SJC is offline
external usenet poster
 
Posts: 22
Default Sort function problem

Thanks much. This suggestion fixed most of my problem, and the second
suggestion below yours took care of the rest of them. Much appreciated.

"Michael" wrote:

Must likely those clients have a leading blank space, what you should do is
do a find and replace of the blank space before you do the sorting.
Or insert a column and place the trim function in it then do a copy paste
values on the source columns to eliminate non printable characters then
proceed to sort.

Example
A1 B1
123 =Trim(a1)




--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"SJC" wrote:

I have a spreadsheet which displays data in rows for about 350 different
clients. Each client has an assigned number which leads each row. When I
sort the rows so that they will appear in numerical order, the majority of
the rows are sorted correctly, but about 30 rows are brought to the top of
the spreadsheet out of order. Besides cutting and pasting them where they
belong, are there any other options for fixing this sorting problem?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 149
Default Sort function problem

Sounds like you have some client 'numbers' that are actually being stored as
Text. Using formatting to "convert" them is often a waste of time. What I
usually do is:
- Format an empty cell with the same format you want applied to your text
numbers
- Place the number 1 in that cell (important to apply number formatting
to cell first, to make sure it isn't text)
- Copy
- Select the text numbers you want to convert
- EditPasteSpecial. Select both "Values & Number Formats" and Multiply.
OK

HTH,


"SJC" wrote in message
...
I have a spreadsheet which displays data in rows for about 350 different
clients. Each client has an assigned number which leads each row. When I
sort the rows so that they will appear in numerical order, the majority of
the rows are sorted correctly, but about 30 rows are brought to the top of
the spreadsheet out of order. Besides cutting and pasting them where they
belong, are there any other options for fixing this sorting problem?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SJC SJC is offline
external usenet poster
 
Posts: 22
Default Sort function problem

Thanks very much--both of your suggestions make it work perfect--appreciate
the help!

"George Nicholson" wrote:

Sounds like you have some client 'numbers' that are actually being stored as
Text. Using formatting to "convert" them is often a waste of time. What I
usually do is:
- Format an empty cell with the same format you want applied to your text
numbers
- Place the number 1 in that cell (important to apply number formatting
to cell first, to make sure it isn't text)
- Copy
- Select the text numbers you want to convert
- EditPasteSpecial. Select both "Values & Number Formats" and Multiply.
OK

HTH,


"SJC" wrote in message
...
I have a spreadsheet which displays data in rows for about 350 different
clients. Each client has an assigned number which leads each row. When I
sort the rows so that they will appear in numerical order, the majority of
the rows are sorted correctly, but about 30 rows are brought to the top of
the spreadsheet out of order. Besides cutting and pasting them where they
belong, are there any other options for fixing this sorting problem?






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 problem spfas Excel Discussion (Misc queries) 2 December 21st 06 08:25 PM
Sort : how can I use a variable in a VB sort function? El Bee Excel Worksheet Functions 3 February 16th 06 09:34 PM
sort function to sort for bell curve Kuby Excel Discussion (Misc queries) 4 December 16th 05 06:51 PM
Complicated sort function with sort and sum Matz Excel Worksheet Functions 3 August 29th 05 07:50 AM
Excel Sort function should not sort the cell formatting! Lisa D.N.1 Excel Worksheet Functions 1 December 28th 04 08:37 PM


All times are GMT +1. The time now is 01:55 AM.

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"