Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sorting Multiple Columns

I have a multi-column sheet with 326 rows that I am attempting to sort by:
State, City and Name. Currently the values for State are limited to "NJ".
If I sort by the above order there are eleven rows of data that are not
sorted correctly. They occur about 2/3ds of the way down the sheet.

I have already tried changing formats to text and number, copying and
pasting into another workbook as values. No fix. It does work normally if
you copy and paste into Word. But if you copy and paste back into Excel it
reverts back.

Any ideas on the cause and remedy would be greatly appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sorting Multiple Columns

You might have one or more spaces as well as "NJ" in those cells - you
can check by using a formula like:

=LEN(cell)

and if you get 3 or more it means you have more characters than just
"NJ". You can click on the right hand side of the formula bar (as if
to edit the cell) and see where the cursor ends up - is it right next
to the J, or separated by some space?

Obviously, if this is the cause then edit the contents of the cells to
get rid of the space(s).

Hope this helps.

Pete

On Oct 5, 5:06 pm, SGF1 wrote:
I have a multi-column sheet with 326 rows that I am attempting to sort by:
State, City and Name. Currently the values for State are limited to "NJ".
If I sort by the above order there are eleven rows of data that are not
sorted correctly. They occur about 2/3ds of the way down the sheet.

I have already tried changing formats to text and number, copying and
pasting into another workbook as values. No fix. It does work normally if
you copy and paste into Word. But if you copy and paste back into Excel it
reverts back.

Any ideas on the cause and remedy would be greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sorting Multiple Columns

Thank You! tried the =LEN() and the rogue lines had three characters instead
of two. Again, thanks!

"Pete_UK" wrote:

You might have one or more spaces as well as "NJ" in those cells - you
can check by using a formula like:

=LEN(cell)

and if you get 3 or more it means you have more characters than just
"NJ". You can click on the right hand side of the formula bar (as if
to edit the cell) and see where the cursor ends up - is it right next
to the J, or separated by some space?

Obviously, if this is the cause then edit the contents of the cells to
get rid of the space(s).

Hope this helps.

Pete

On Oct 5, 5:06 pm, SGF1 wrote:
I have a multi-column sheet with 326 rows that I am attempting to sort by:
State, City and Name. Currently the values for State are limited to "NJ".
If I sort by the above order there are eleven rows of data that are not
sorted correctly. They occur about 2/3ds of the way down the sheet.

I have already tried changing formats to text and number, copying and
pasting into another workbook as values. No fix. It does work normally if
you copy and paste into Word. But if you copy and paste back into Excel it
reverts back.

Any ideas on the cause and remedy would be greatly appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sorting Multiple Columns

You're welcome - glad you were able to track down the rogue data.

Pete

On Oct 6, 5:05 pm, SGF1 wrote:
Thank You! tried the =LEN() and the rogue lines had three characters instead
of two. Again, thanks!



"Pete_UK" wrote:
You might have one or more spaces as well as "NJ" in those cells - you
can check by using a formula like:


=LEN(cell)


and if you get 3 or more it means you have more characters than just
"NJ". You can click on the right hand side of the formula bar (as if
to edit the cell) and see where the cursor ends up - is it right next
to the J, or separated by some space?


Obviously, if this is the cause then edit the contents of the cells to
get rid of the space(s).


Hope this helps.


Pete


On Oct 5, 5:06 pm, SGF1 wrote:
I have a multi-column sheet with 326 rows that I am attempting to sort by:
State, City and Name. Currently the values for State are limited to "NJ".
If I sort by the above order there are eleven rows of data that are not
sorted correctly. They occur about 2/3ds of the way down the sheet.


I have already tried changing formats to text and number, copying and
pasting into another workbook as values. No fix. It does work normally if
you copy and paste into Word. But if you copy and paste back into Excel it
reverts back.


Any ideas on the cause and remedy would be greatly appreciated.- Hide quoted text -


- Show quoted text -



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
Sorting alphabetical list into multiple columns jp1733 Excel Worksheet Functions 3 August 16th 06 01:17 AM
Sorting multiple columns Hexius New Users to Excel 3 April 18th 06 01:55 AM
Sorting in multiple columns jezzica85 Excel Discussion (Misc queries) 2 February 20th 06 11:17 PM
sorting data across multiple columns Spiderman Excel Discussion (Misc queries) 2 October 6th 05 11:55 PM
Sorting multiple columns together sweetledee Excel Discussion (Misc queries) 4 August 23rd 05 10:19 PM


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