#1   Report Post  
abs
 
Posts: n/a
Default Excel Sort

Using Excel 2002 and have a list as follows:
1B
1H
10A
11F
100H
102H

When I hit sort, the list sorts as:
100H
102H
10A
11F
1B
1H

I want it to sort:
1B
1H
10A
11F
100H
102H

Can that be done easily?

  #2   Report Post  
Martin P
 
Posts: n/a
Default

Copy to Word.
In Word:
Convert table to text (separate text with paragraph marks)
Edit, Replace. Wildcards enabled. Replace ([0-9])([A-Z]) with \1^t\2
Convert text to table (separate text at tabs)
Sort by Column 1
You can use either Word or Excel to put the two parts together.


"abs" wrote:

Using Excel 2002 and have a list as follows:
1B
1H
10A
11F
100H
102H

When I hit sort, the list sorts as:
100H
102H
10A
11F
1B
1H

I want it to sort:
1B
1H
10A
11F
100H
102H

Can that be done easily?

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Always a bunch of numbers followed by a single alphabetic character?

If yes, then insert two helper columns:

(with the data in column A)

in B1:
=--left(a1,len(a1)-1)

in C1:
=right(a1,1)

And drag down your range.

Sort by these two helper columns.

(Delete them when you're done (if you want to).)

abs wrote:

Using Excel 2002 and have a list as follows:
1B
1H
10A
11F
100H
102H

When I hit sort, the list sorts as:
100H
102H
10A
11F
1B
1H

I want it to sort:
1B
1H
10A
11F
100H
102H

Can that be done easily?


--

Dave Peterson
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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
I want to sort selected cells in Excel, not entire rows. Aeryn635 Excel Discussion (Misc queries) 1 June 1st 05 07:58 PM
sort column data with hidden columns - excel 2003 nanimadrina Excel Discussion (Misc queries) 2 April 26th 05 08:27 PM
Formula Integrity Not Preserved During Sort in Excel 2000 Kevin Excel Discussion (Misc queries) 1 April 15th 05 10:26 PM
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 11:28 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"