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 Sort Not Working on Column of Numbers

Below is the outcome of my sort when the cells were formatted as number

These are currency values. I copied and pasted the information from a
website into Excel and all cells were formatted as "General" when I checked
my spreadsheet. I have tried to change the cell formatting to everything
imaginable, currency, numbers, removed commas, cleared $ sign formats etc yet
it appears that Excel is treating these numbers as text.

The help section said to change the cell format to number from text. Yet the
data was formatted as "general".

It seems to be sorting from the left rather then by total value.

99198
9500
94012
92661
9175
9172
88933
86999
86250
8620
86154
8400
82335
81678
795888
78689
765552

Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Sort Not Working on Column of Numbers

The format is affecting how the data is shown, not how it's stored or
evaluated. To check whether a column is truly numeric, I usually just
highlight it and click on the 'comma style' button. If it's numeric, you'll
see the comma delimiter and probably a decimal point with a couple digitis
following. (After checking, click 'undo').
To convert text to numbers, click in a blank cell. Ctrl-C to copy.
Highlight your column to be converted. Right-click, select Paste Special,
select Values and click OK. Now your text should be coverted to numeric
values and the sort should work as you're expecting.

"therube" wrote:

Below is the outcome of my sort when the cells were formatted as number

These are currency values. I copied and pasted the information from a
website into Excel and all cells were formatted as "General" when I checked
my spreadsheet. I have tried to change the cell formatting to everything
imaginable, currency, numbers, removed commas, cleared $ sign formats etc yet
it appears that Excel is treating these numbers as text.

The help section said to change the cell format to number from text. Yet the
data was formatted as "general".

It seems to be sorting from the left rather then by total value.

99198
9500
94012
92661
9175
9172
88933
86999
86250
8620
86154
8400
82335
81678
795888
78689
765552

Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sort Not Working on Column of Numbers

Hi,

To convert the entries to figures, highlight the range and go to Data Text
tot columns and then click on Finish. This will convert all the entries to
numbers.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"therube" wrote in message
...
Below is the outcome of my sort when the cells were formatted as number

These are currency values. I copied and pasted the information from a
website into Excel and all cells were formatted as "General" when I
checked
my spreadsheet. I have tried to change the cell formatting to everything
imaginable, currency, numbers, removed commas, cleared $ sign formats etc
yet
it appears that Excel is treating these numbers as text.

The help section said to change the cell format to number from text. Yet
the
data was formatted as "general".

It seems to be sorting from the left rather then by total value.

99198
9500
94012
92661
9175
9172
88933
86999
86250
8620
86154
8400
82335
81678
795888
78689
765552

Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Sort Not Working on Column of Numbers

HI,

The numbers are really text as everyone is telling you.

If you are using 2002-3 then there should be a green triangle at the top
right of the cells. Highlight the range and put your mouse over the green
error checking triangle and not to popup icon to the left, put your mouse
over it and click it to see a list of options, choose Convert to Number.

Unfortunately, Paste Special Values will not do it. Here the secret is to
select an empty cell and copy it, then select all the text numbers and choose
Edit, Paste Special, Add. This command is ~100 times faster than the Convert
to numbers command. So if you have a large amount of data if would be the
better of the two. Also, the first option is not available in earlier
versions of Excel but this one has always been around.

The Text to Columns command is also a good choice.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"bapeltzer" wrote:

The format is affecting how the data is shown, not how it's stored or
evaluated. To check whether a column is truly numeric, I usually just
highlight it and click on the 'comma style' button. If it's numeric, you'll
see the comma delimiter and probably a decimal point with a couple digitis
following. (After checking, click 'undo').
To convert text to numbers, click in a blank cell. Ctrl-C to copy.
Highlight your column to be converted. Right-click, select Paste Special,
select Values and click OK. Now your text should be coverted to numeric
values and the sort should work as you're expecting.

"therube" wrote:

Below is the outcome of my sort when the cells were formatted as number

These are currency values. I copied and pasted the information from a
website into Excel and all cells were formatted as "General" when I checked
my spreadsheet. I have tried to change the cell formatting to everything
imaginable, currency, numbers, removed commas, cleared $ sign formats etc yet
it appears that Excel is treating these numbers as text.

The help section said to change the cell format to number from text. Yet the
data was formatted as "general".

It seems to be sorting from the left rather then by total value.

99198
9500
94012
92661
9175
9172
88933
86999
86250
8620
86154
8400
82335
81678
795888
78689
765552

Thanks for your help.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Sort Not Working on Column of Numbers

Thanks Shane; you're correct, I meant to suggest Paste Special Add. Paste
Special Values was wrong.

"Shane Devenshire" wrote:

HI,

The numbers are really text as everyone is telling you.

If you are using 2002-3 then there should be a green triangle at the top
right of the cells. Highlight the range and put your mouse over the green
error checking triangle and not to popup icon to the left, put your mouse
over it and click it to see a list of options, choose Convert to Number.

Unfortunately, Paste Special Values will not do it. Here the secret is to
select an empty cell and copy it, then select all the text numbers and choose
Edit, Paste Special, Add. This command is ~100 times faster than the Convert
to numbers command. So if you have a large amount of data if would be the
better of the two. Also, the first option is not available in earlier
versions of Excel but this one has always been around.

The Text to Columns command is also a good choice.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"bapeltzer" wrote:

The format is affecting how the data is shown, not how it's stored or
evaluated. To check whether a column is truly numeric, I usually just
highlight it and click on the 'comma style' button. If it's numeric, you'll
see the comma delimiter and probably a decimal point with a couple digitis
following. (After checking, click 'undo').
To convert text to numbers, click in a blank cell. Ctrl-C to copy.
Highlight your column to be converted. Right-click, select Paste Special,
select Values and click OK. Now your text should be coverted to numeric
values and the sort should work as you're expecting.

"therube" wrote:

Below is the outcome of my sort when the cells were formatted as number

These are currency values. I copied and pasted the information from a
website into Excel and all cells were formatted as "General" when I checked
my spreadsheet. I have tried to change the cell formatting to everything
imaginable, currency, numbers, removed commas, cleared $ sign formats etc yet
it appears that Excel is treating these numbers as text.

The help section said to change the cell format to number from text. Yet the
data was formatted as "general".

It seems to be sorting from the left rather then by total value.

99198
9500
94012
92661
9175
9172
88933
86999
86250
8620
86154
8400
82335
81678
795888
78689
765552

Thanks for your help.

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
how can i sort on a perticular column for odd and even numbers [email protected] Excel Worksheet Functions 4 November 23rd 08 08:09 PM
how do I sort a column mixed with odd and even numbers .. ? Istvan Excel Discussion (Misc queries) 1 March 10th 07 04:02 AM
HOW DO I SORT A COLUMN OF NUMBERS AND HAVE THE DUPLICATES REMOVED Jeff Excel Discussion (Misc queries) 2 August 29th 06 08:38 PM
sort and return column numbers [email protected] Excel Worksheet Functions 5 May 16th 06 11:39 AM
sort a column of numbers with 100510 and 10160 so they are in th. Uncle Al Excel Discussion (Misc queries) 6 February 2nd 05 12:41 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"