#1   Report Post  
peter
 
Posts: n/a
Default sorting help

Bear in mind, I am new to excel. Say I have a column with the
following entries:

2
1
2-a
3

When I use the "sort ascending" button on this column it comes up:

1
2
3
2-a

What I would like is the following:
1
2
2-a
3

Can anyone help?

Thanks,
Peter

  #2   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Peter,
You would have to make sure that Excel knows that each
cell is text. Excel sorts numeric cells before text cells.
Format the column as text, and then reenter each cell
with F2 then Enter; or use a macro to effect the reentry.
http://www.mvps.org/dmcritchie/excel/join.htm#reenter
one of the macros there should help, probably the first one
under that topic.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"peter" wrote in message oups.com...
Bear in mind, I am new to excel. Say I have a column with the
following entries:

2
1
2-a
3

When I use the "sort ascending" button on this column it comes up:

1
2
3
2-a

What I would like is the following:
1
2
2-a
3

Can anyone help?

Thanks,
Peter



  #3   Report Post  
peter
 
Posts: n/a
Default

Thank you, David!

  #4   Report Post  
peter
 
Posts: n/a
Default

OK, that worked for my example. In my actual spreadsheet, I am copying
data from one sheet to the next where I sort it. I wasn't able to get
it to work when I copied and pasted data. Do I format the original
sheet as text and the sheet on which it is sorted? Maybe I didn't try
hard enough, but I'm wondering if you have a quick answer.

  #5   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Peter,
Since those are probably constants, that actually
would simplify that if that is all there is to it.

Format the output area as text, and copy the
input area, the paste as values (edit, paste special, values)

My Excel is 2000, just in case that doesn't work for you.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]


"peter" wrote in message oups.com...
OK, that worked for my example. In my actual spreadsheet, I am copying
data from one sheet to the next where I sort it. I wasn't able to get
it to work when I copied and pasted data. Do I format the original
sheet as text and the sheet on which it is sorted? Maybe I didn't try
hard enough, but I'm wondering if you have a quick answer.





  #6   Report Post  
peter
 
Posts: n/a
Default

Ok I think I got it this time. Thanks!

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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Sorting Spreadsheet with Merged Fields Linda L Excel Discussion (Misc queries) 1 January 22nd 05 12:58 AM
sorting detail rows - summary row in an outline ExcelSteve Excel Discussion (Misc queries) 1 December 5th 04 02:40 PM
Sorting problem Klaus Excel Discussion (Misc queries) 3 December 4th 04 01:55 AM
sorting question Brian Excel Discussion (Misc queries) 4 November 28th 04 12:30 PM


All times are GMT +1. The time now is 02:59 PM.

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"