Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default Sorting addresses by the number

assuming there is a space between Numbers and street address
in column X you can type
=LEFT(A1,FIND(" ",A1,1)-1)
this will give you the number of the address as text then you can sort this
column.
go to data--sort--coulmnX--ok--select sort anything looks like a number
as a number--select ok

Nikki
"Dave F" wrote:

Yeah, addresses are formatted as text, not numbers. You'll notice that
Windows sorts file names in the same way. If you want to sort by the street
number, you have to extract the street number from the address, put that
value into a separate column, and sort on the separate column.

If you have a street address, say 255 W 94th St. NY NY you could use the
Text to Columns function (data--text to columns) to extract the numbers.

Someone may have a more elegant solution than that.

Dave

--
Brevity is the soul of wit.


"Blake" wrote:

I am trying to sort a column of addresses based on the number of the address.
(from lowest number to highest).

But when I do it, all numbers starting with 1 come first- so 1000 High
Street is listed before 5 High Street. I have tried to research this and I
can't find much info... just that it might have to do with numbers being
stored as text. Ive tried changing it and it doesn't work. 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
sorting numbers with an irregular number of digits hearthd Excel Discussion (Misc queries) 5 October 8th 06 06:42 PM
Non updatable Unique Random Number Ian Excel Worksheet Functions 30 September 28th 06 08:19 PM
Changing a Number in a Column Using Arrays [email protected] Excel Worksheet Functions 3 September 12th 06 02:48 PM
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 1 October 8th 05 07:33 AM
Sorting Numbers with Multiple Decimals (cont.) Intern Ian Excel Discussion (Misc queries) 5 September 21st 05 12:04 AM


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