Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a column of numbers that were imported from a web site and they won't
sort correctly. I have tried reformatting the cells as general numbers but that doesn't change anything. I discovered that numbers below 100 have a space or invisible data in front of the number. If I remove it, the number then shifts to right alignment in the cell and will sort as a number. Is there any way I can remove these spaces from all numbers at once instead of going down the column row by row? |
#2
![]() |
|||
|
|||
![]()
Saved from a previous post.
Extra spaces??? Pasting from a web page??? (Maybe extra non-breaking spaces (HTML stuff)) Cell formatted as text?? If it's the non-breaking spaces stuff, visit David McRitchie's site for a routine that will clean them up: http://www.mvps.org/dmcritchie/excel/join.htm#trimall (look for "Sub Trimall()") If you still can't find the problem, visit Chip Pearson's site and get his CellView addin. It should help you check character by character. http://www.cpearson.com/excel/CellView.htm FernW wrote: I have a column of numbers that were imported from a web site and they won't sort correctly. I have tried reformatting the cells as general numbers but that doesn't change anything. I discovered that numbers below 100 have a space or invisible data in front of the number. If I remove it, the number then shifts to right alignment in the cell and will sort as a number. Is there any way I can remove these spaces from all numbers at once instead of going down the column row by row? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Numbers won't sort correctly. | Excel Discussion (Misc queries) | |||
Tell users how to sort 5 digit and 9 digit zipcodes correctly aft. | New Users to Excel | |||
How to sort random numbers in columns | Excel Discussion (Misc queries) | |||
sort + & - numbers together | Excel Worksheet Functions | |||
How do I reference and sort a range of numbers in Excel 97? | Excel Worksheet Functions |