Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sorting by Number

I am importing a list based on numbers (jerseys) and when I sort by the
numbers my list comes up like this:
1 Smith, John Martinsvile, IN
10 Jones, Shelly Chicago, IL
11 Martin, Tom St. Petersburg
2 Jelcin, Jeff Grand Rapids, MI
21 Bryant, Kobe Walla, Walla

How do I get them to be 1, 2, 3 and not 1, 10, 11, 2, 21?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sorting by Number

Hi,

Not clear about what you want but I assume you want a continuous range of
numbers. Try this formula =IF(ISERROR(B4+1),1,B4+1). B4 has the heading of
the numbers column. Now even after sorting, the numbers would remain 1,2,3

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Big Rich" <Big wrote in message
...
I am importing a list based on numbers (jerseys) and when I sort by the
numbers my list comes up like this:
1 Smith, John Martinsvile, IN
10 Jones, Shelly Chicago, IL
11 Martin, Tom St. Petersburg
2 Jelcin, Jeff Grand Rapids, MI
21 Bryant, Kobe Walla, Walla

How do I get them to be 1, 2, 3 and not 1, 10, 11, 2, 21?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sorting by Number

Nope, that didn't work...I'm not even sure that I should need a formula to do
this.

All I am attempting is to do my own Numerical sorting of a sports team's
roster. I've done this before, but now I'm getting the jersey's grouped by
their 10's.

"Ashish Mathur" wrote:

Hi,

Not clear about what you want but I assume you want a continuous range of
numbers. Try this formula =IF(ISERROR(B4+1),1,B4+1). B4 has the heading of
the numbers column. Now even after sorting, the numbers would remain 1,2,3

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Big Rich" <Big wrote in message
...
I am importing a list based on numbers (jerseys) and when I sort by the
numbers my list comes up like this:
1 Smith, John Martinsvile, IN
10 Jones, Shelly Chicago, IL
11 Martin, Tom St. Petersburg
2 Jelcin, Jeff Grand Rapids, MI
21 Bryant, Kobe Walla, Walla

How do I get them to be 1, 2, 3 and not 1, 10, 11, 2, 21?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sorting by Number

If you have imorted this may be column with numbers (assume it is Col A) is
in text format. Try this out

--Copy a blank cell
--Keeping the copy select Column A
--Right clickPasteSpecialselect AddClick OK
--This will convert the data to numerics. Now try sort...

If this post helps click Yes
---------------
Jacob Skaria


"Big Rich" wrote:

I am importing a list based on numbers (jerseys) and when I sort by the
numbers my list comes up like this:
1 Smith, John Martinsvile, IN
10 Jones, Shelly Chicago, IL
11 Martin, Tom St. Petersburg
2 Jelcin, Jeff Grand Rapids, MI
21 Bryant, Kobe Walla, Walla

How do I get them to be 1, 2, 3 and not 1, 10, 11, 2, 21?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Sorting by Number

Hello,

Your numbers seem to be treated as text by Excel.

Anyway, you can sort them as numbers with
http://sulprobil.com/html/sort_vba.html
for example.

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Sorting by Number

Hello,

Since it is imported text from another application, you got perhaps some
invisible characters like char(160).

You can try :

To sort your list, you could extract the numbers to another column
I supposed your data are in column A
insert a column before the column A
Put the formula below into column A into the first cell at the left of your
data in column B
copy the formula in the first cell down to the last cell

Formula:
=VALUE(LEFT(TRIM(SUBSTITUTE(RC[1],CHAR(160)," ")),FIND("
",TRIM(SUBSTITUTE(RC[1],CHAR(160)," ")))))

The column A should now contains your numbers.
Sort A:B by column A

Excuse me for my awful english !





"Big Rich" <Big a écrit dans le message de
...
I am importing a list based on numbers (jerseys) and when I sort by the
numbers my list comes up like this:
1 Smith, John Martinsvile, IN
10 Jones, Shelly Chicago, IL
11 Martin, Tom St. Petersburg
2 Jelcin, Jeff Grand Rapids, MI
21 Bryant, Kobe Walla, Walla

How do I get them to be 1, 2, 3 and not 1, 10, 11, 2, 21?


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
Number Sorting Darren Excel Discussion (Misc queries) 2 November 26th 08 04:21 PM
VIN Number sorting HRassist Excel Worksheet Functions 10 June 5th 07 04:57 PM
sorting same model number excel question Excel Discussion (Misc queries) 4 November 16th 06 04:14 PM
Sorting by Row Number? Rothman Excel Worksheet Functions 1 October 1st 06 03:13 AM
Sorting by Number of Characters cny2 Excel Discussion (Misc queries) 3 July 28th 05 04:40 PM


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