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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,758
Messages
6,126,713
Members
449,332
Latest member
nokoloina

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