Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default sorting numerical data

I need to sort a column say "c" which contains numerical data. When i press
"a to z sort" button the numerical data is sorted as alphabetical data i.e
it ignores positive and negative signs and after 10, the value 100 comes
and 20 then -20 then 200 like this. How to sort this data in ascending or
descending order?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 149
Default sorting numerical data

It may look like numerical data to you, but Access is seeing it as text
data.

Options include:
- If in a table: Changing the data type of the field. If there are
relationships involved this might not be possible or advisable.
- Create a query that mimics your current data source but coerce that
field to numeric with the appropriate function: Cdbl(), Clng(), etc. Then
sort on the coerced numbers.

HTH,


"ezil" wrote in message
...
I need to sort a column say "c" which contains numerical data. When i press
"a to z sort" button the numerical data is sorted as alphabetical data i.e
it ignores positive and negative signs and after 10, the value 100 comes
and 20 then -20 then 200 like this. How to sort this data in ascending or
descending order?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 149
Default sorting numerical data

Oops. Excel newsgroup, Access answer. Try again:

It may look like numerical data to you, but Excel is seeing it as text
data.

One approach:
- Find an empty cell. Place the number 1 in it. Format the cell the way
you want all your numbers to appear.
- Copy that formatted cell.
- Select the range containing the "text" you want to convert to numbers.
- EditPasteSpecial: select BOTH [Values & Number Formats] and
Multiply. Click OK

Try your sort again and your results should be as expected.
HTH,


"George Nicholson" wrote in message
...
It may look like numerical data to you, but Access is seeing it as text
data.

Options include:
- If in a table: Changing the data type of the field. If there are
relationships involved this might not be possible or advisable.
- Create a query that mimics your current data source but coerce that
field to numeric with the appropriate function: Cdbl(), Clng(), etc. Then
sort on the coerced numbers.

HTH,


"ezil" wrote in message
...
I need to sort a column say "c" which contains numerical data. When i
press
"a to z sort" button the numerical data is sorted as alphabetical data
i.e
it ignores positive and negative signs and after 10, the value 100 comes
and 20 then -20 then 200 like this. How to sort this data in ascending or
descending order?





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 data using numerical list Lyns Excel Worksheet Functions 1 March 7th 07 06:13 AM
Sorting Numerical Values... Smohrman Excel Worksheet Functions 9 April 7th 06 07:58 AM
numerical data sort brichwine Excel Worksheet Functions 5 February 10th 06 06:32 PM
How do I total non-numerical data asg2307 New Users to Excel 2 December 27th 05 09:27 PM
Non-numerical data in a pie chart Gina O'Brien Excel Discussion (Misc queries) 1 May 13th 05 01:41 PM


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