Forum

Notifications
Clear all

Sorting

8 Posts
3 Users
0 Reactions
130 Views
(@cmckeever)
Posts: 38
Trusted Member
Topic starter
 

Hi,

Is it possible to sort the attached file by address?  The street names are already sorted, but I need the house numbers and street names sorted in ascending order, keeping all the data together.

 

Cedric McKeever

 
Posted : 13/03/2024 4:23 pm
(@kjbox)
Posts: 69
Trusted Member
 

Why do you have so many blank rows in you data? that makes sorting difficult.

Having said that, you could add a couple of helper columns to separate Number and Street using TEXTBEFORE and TEXTAFTER then use the SORT & FILTER formulae to get your desired result. the helper columns (C & D) and columns H & I can be hidden.

Alternatively you could remove all the empty rows, add the helper columns as before, then sort first by Number then by Street. Again helper columns can be hidden or even deleted.

 
Posted : 13/03/2024 11:02 pm
Riny van Eekelen
(@riny)
Posts: 1210
Member Moderator
 

I agree with Charles but would add that you probably need to wrap the helper for the street number in a VALUE function. Otherwise the 'numbers' will be sorted as text. In case you have addresses like '98 Street' and '100 Street' you want to sort them in that order. Leaving the numbers as text will sort them "100" first, then "98".

 
Posted : 14/03/2024 3:12 am
(@kjbox)
Posts: 69
Trusted Member
 

Riny is correct, the TEXTBEFORE should be wrapped in VALUE. Thanks for pointing that out, Riny.

 
Posted : 14/03/2024 4:19 am
(@cmckeever)
Posts: 38
Trusted Member
Topic starter
 

Hi,

Thanks for taking the time to answer my question.  

The blank line is there to make it easier to read while I am walking around trying to contact individuals. 

That was the last step in a long process of cleaning up some data, which Riny helped me previously.  After the "last step" I realized that the numbers were not in order.  Being lazy, I did not want to go back and sort by street then number, if that is possible (it was 2 different columns before joining).  

I'll start working on your solution today.

Again, thanks for all your help.

Cedric

 
Posted : 15/03/2024 8:38 am
(@kjbox)
Posts: 69
Trusted Member
 

Go back to having Number and Street in different columns. Much better that way.

 
Posted : 15/03/2024 8:29 pm
Riny van Eekelen
(@riny)
Posts: 1210
Member Moderator
 

You wrote:

"The blank line is there to make it easier to read while I am walking around trying to contact individuals. "

If you want more white space between the addresses, you could increase the row height. That's better than inserting blank rows.

 
Posted : 16/03/2024 2:45 am
(@cmckeever)
Posts: 38
Trusted Member
Topic starter
 

Hi,

I believe Charles is right, I should have had two columns for address.  

I also, never thought of widening the rows, I'll try it out.  

Thanks again for taking time to help me out.  Keep up the good work.

Cedric

 
Posted : 16/03/2024 8:32 am
Share: