Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stuck in Africa help me please
 
Posts: n/a
Default how do i sort by numerical prefix ? 1423 would come before 850

Help me I need to sort a table by numerical Prefix , For example if I hade
the following 4 numbers 85,444454, 11111, 99 they should sort as
11111,444454,85,99

I have a 2002 hp excel program

Thanks
  #2   Report Post  
Gilles Desjardins
 
Posts: n/a
Default how do i sort by numerical prefix ? 1423 would come before 850

Type them in with an apostrophe '11111 '444454 In other words use them as
text
HTh

Gilles
"Stuck in Africa help me please" <Stuck in Africa help me
wrote in message
...
Help me I need to sort a table by numerical Prefix , For example if I
hade
the following 4 numbers 85,444454, 11111, 99 they should sort as
11111,444454,85,99

I have a 2002 hp excel program

Thanks



  #3   Report Post  
Karthik
 
Posts: n/a
Default how do i sort by numerical prefix ? 1423 would come before 850

I just tried and got the result you wanted. Put the numbers to be sorted in
column A and in column B, write the formula =left(A1,1) and copy it to the
entire range.

Then sort by column B first and then by column A. Once you say OK, you will
get a warning. Select the radio button against the option

Sort numbers and numbers stored as text separately.

And voila! You should get what you want. Hope it works

Karthik


"Stuck in Africa help me please" wrote:

Help me I need to sort a table by numerical Prefix , For example if I hade
the following 4 numbers 85,444454, 11111, 99 they should sort as
11111,444454,85,99

I have a 2002 hp excel program

Thanks

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default how do i sort by numerical prefix ? 1423 would come before 850

You could also add a helper column with a formula of

=A1&REPT("0",10-LEN(A1))

copy down, and sort by the helper column.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Stuck in Africa help me please" <Stuck in Africa help me
wrote in message
...
Help me I need to sort a table by numerical Prefix , For example if I

hade
the following 4 numbers 85,444454, 11111, 99 they should sort as
11111,444454,85,99

I have a 2002 hp excel program

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
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
way to automaitic sort sheet one numerical, sheet two alpha? wichita6 Excel Worksheet Functions 3 February 11th 05 03:43 PM
sort worksheets in numerical order andrew Excel Discussion (Misc queries) 2 February 7th 05 09:09 PM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM


All times are GMT +1. The time now is 04:19 AM.

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"