Can this be done via formula (Sort) if not then VBA

Sahil123

Well-known Member
Joined
Oct 31, 2011
Messages
673
Hi, i am trying to fit the message properly but for some reason it is formatting and pasting weirdly

Is there a formula way I could sort a street
so say I had:
1 Sandown
2 Sandown
3 Sandown
3 Blackheath
4 Blackheath
6 Sandown
8 Sandown
1 Blackheath
2 Blackheath
7 Sandown
5 Blackheath
6 Blackheath
19 Blackheath
4 Sandown
5 Sandown
Can I sort to something like this:
1 Blackheath
2 Blackheath
3 Blackheath
4 Blackheath
5 Blackheath
6 Blackheath
19 Blackheath
1 Sandown
2 Sandown
3 Sandown
4 Sandown
5 Sandown
6 Sandown
7 Sandown
8 Sandown

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You can put this formula in B1 and copy down:

=MID(A1,FIND(" ",A1)+1,255)&" "&TEXT(LEFT(A1,FIND(" ",A1)-1),"00")

Then sort A:B by column B.
 
Upvote 0

Forum statistics

Threads
1,214,838
Messages
6,121,885
Members
449,057
Latest member
Moo4247

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top