Move numbers end of the cell in new cel

jellevansoelen

New Member
Joined
Mar 1, 2021
Messages
29
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

I have a lot of this cells:

Book3
A
1Middelweg 55
2Torenstraat 39-41
3Nieuwe Steeg 7
4Schoutlaan 9
5Leerdamseweg 22a
Sheet1


The numbers in the cell are house numbers.
Now I want pick that housenumber and move that to another cell

But the house numbers can look as 11-13 or 12b.

Exactly i look for a formule what move everything beginning by the first number in that cell.

Result must be:
Book3
AB
1Middelweg55
2Torenstraat39-41
3Nieuwe Steeg7
4Schoutlaan9
5Leerdamseweg22a
Sheet1


Tnx a lot.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
How about
+Fluff 1.xlsm
ABC
1
2Middelweg 55Middelweg55
3Torenstraat 39-41Torenstraat39-41
4Nieuwe Steeg 7Nieuwe Steeg7
5Schoutlaan 9Schoutlaan9
6Leerdamseweg 22aLeerdamseweg22a
Result
Cell Formulas
RangeFormula
B2:B6B2=TRIM(LEFT(SUBSTITUTE(A2," ",REPT(" ",100),LEN(A2)-LEN(SUBSTITUTE(A2," ",""))),100))
C2:C6C2=TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",100),LEN(A2)-LEN(SUBSTITUTE(A2," ",""))),100))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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