#1   Report Post  
Posted to microsoft.public.excel.misc
Tab Tab is offline
external usenet poster
 
Posts: 11
Default sorting problems

HOT WATER HEATER:50766-1
HOT WATER HEATER:50766-10
HOT WATER HEATER:50766-2
HOT WATER HEATER:50766-3
HOT WATER HEATER:50766-4

This is the data that I am trying to sort by. The item with a -10 should be
at the end but it always comes up this way.

Please help. All of the postings that I looked at have not helped.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default sorting problems

On Feb 18, 11:25*pm, tab wrote:
HOT WATER HEATER:50766-1
HOT WATER HEATER:50766-10
HOT WATER HEATER:50766-2
HOT WATER HEATER:50766-3
HOT WATER HEATER:50766-4

This is the data that I am trying to sort by. *The item with a -10 should be
at the end but it always comes up this way.

Please help. *All of the postings that I looked at have not helped.

Thanks,


If you try to add 0 at the beginning of single denomination should be
no problem.like as, istead of 1 need to put 01.
cheers
Baha
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 220
Default sorting problems

You might try creating two helper columns that split your entries into two
parts. Let's say your data are in column A, with a header in the first row.

In column B, put in a formula like "=LEFT($A2,SEARCH("-",$A2:$A2,1)-1)".
This will extract all text before the "-" character. Fill down for all of
your entries.

In column C, use the formula "=RIGHT($A2,LEN($A2)-SEARCH("-",$A2:$A2,1))".
This one extracts everything after the "-". Fill down for all of your
entries.

Now select all the data in columns A, B and C. In the sort dialog box
("Data/Sort...") sort the data first by column B and then by column C, both
Ascending. You might get a warning that says that the data in column C are
"numbers formatted as text". Make sure you sort them as numbers!

This should result in the sort order you desire.

HTH,

Eric

"tab" wrote:

HOT WATER HEATER:50766-1
HOT WATER HEATER:50766-10
HOT WATER HEATER:50766-2
HOT WATER HEATER:50766-3
HOT WATER HEATER:50766-4

This is the data that I am trying to sort by. The item with a -10 should be
at the end but it always comes up this way.

Please help. All of the postings that I looked at have not helped.

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
Sorting Problems Rob Excel Discussion (Misc queries) 0 November 23rd 05 10:58 PM
Sorting Problems Katie59 Excel Discussion (Misc queries) 5 November 11th 05 08:05 PM
sorting problems sbrimley Excel Worksheet Functions 1 April 4th 05 10:09 PM
Need Help with Sorting Problems Brenda Rueter Excel Discussion (Misc queries) 1 March 21st 05 04:25 PM
Sorting Problems Brenda Rueter Excel Discussion (Misc queries) 4 March 21st 05 04:07 PM


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