#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Excel Sorting

I need to know how to sort a group of numbers that have a different amount of
digits in them and may have dashes and letters. I have tried formatting the
cells as numbers, text, and general. None of that works. It always comes up
with the 3 digit numbers first, then 4 digit, then 5 etc. I need to be able
to sort it by 1st digit, then 2nd, then 3rd, etc.

Example

112
1134-blk
112563
1290-wht
1345
150
80-17068-03

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Excel Sorting

First, create a helper column to truly transform the data into text:
=TEXT(A2,"@")

Next, select both columns, and go to Data - Sort. Sort the helper column
Ascending, and at next dialogue, choose "Sort numbers and numbers stored as
text seperately". Will produce:

112
112563
1134-blk
1290-wht
1345
150
80-17068-03


--
Best Regards,

Luke M
"Judy" wrote in message
...
I need to know how to sort a group of numbers that have a different amount
of
digits in them and may have dashes and letters. I have tried formatting
the
cells as numbers, text, and general. None of that works. It always comes
up
with the 3 digit numbers first, then 4 digit, then 5 etc. I need to be
able
to sort it by 1st digit, then 2nd, then 3rd, etc.

Example

112
1134-blk
112563
1290-wht
1345
150
80-17068-03



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Excel Sorting

OK I assumed that the formula should have the "A2" increasing as you move
down the rows?

"Luke M" wrote:

First, create a helper column to truly transform the data into text:
=TEXT(A2,"@")

Next, select both columns, and go to Data - Sort. Sort the helper column
Ascending, and at next dialogue, choose "Sort numbers and numbers stored as
text seperately". Will produce:

112
112563
1134-blk
1290-wht
1345
150
80-17068-03


--
Best Regards,

Luke M
"Judy" wrote in message
...
I need to know how to sort a group of numbers that have a different amount
of
digits in them and may have dashes and letters. I have tried formatting
the
cells as numbers, text, and general. None of that works. It always comes
up
with the 3 digit numbers first, then 4 digit, then 5 etc. I need to be
able
to sort it by 1st digit, then 2nd, then 3rd, etc.

Example

112
1134-blk
112563
1290-wht
1345
150
80-17068-03



.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default Excel Sorting

On 3/17/2010 11:08 AM, Judy wrote:
OK I assumed that the formula should have the "A2" increasing as you move
down the rows?

Yes, Luke's formula assumes the first number is in cell A2 with the
other numbers following below.

Bill
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Excel Sorting

I cannot get it to fill down while increasing the number. What is the
secret? I tried the things that I normally do without success.

"Billns" wrote:

On 3/17/2010 11:08 AM, Judy wrote:
OK I assumed that the formula should have the "A2" increasing as you move
down the rows?

Yes, Luke's formula assumes the first number is in cell A2 with the
other numbers following below.

Bill
.

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 Values Without Sorting Formulas SBX Excel Discussion (Misc queries) 2 April 12th 09 11:17 PM
Automatic sorting (giving max and min) based on custom sorting lis Joe Lewis[_2_] Excel Worksheet Functions 4 November 23rd 08 05:12 AM
Sorting VLookup vs Sorting SumProduct Lauren Excel Discussion (Misc queries) 1 August 21st 07 12:19 AM
Sorting in Excel acorrow Excel Discussion (Misc queries) 2 January 31st 06 11:51 PM
excel sorting Baba Excel Worksheet Functions 7 February 23rd 05 03:38 PM


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