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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

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