Text to columns

StellaArtois

New Member
Joined
Jan 10, 2024
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a range of numbers in AB with 000 before them (ie 00042008) but i need it to return just (42008)

Now by normal means this would be easy but i have a code that copies the data and i cant/dont want to change the data manually

is there a code that can change column AB to numbers only without the 000 at the beginning

I tried text to columns which worked but the macro recorder didnt copy it over?

Many thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try the unary operator.
Book1
AB
1
2000004200842008
300068956895
4004244012342440123
Sheet6
Cell Formulas
RangeFormula
B2:B4B2=--A2
 
Upvote 0
Solution

Forum statistics

Threads
1,224,045
Messages
6,176,055
Members
452,701
Latest member
rfhandel

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