Combining Left, Right and Mid

Tplus9

New Member
Joined
Mar 25, 2019
Messages
1
I have a column of numbers 8 digits long (text - to display leading zeros). I need to extract digits 2 and 5-8 and place in another column (e.g., 01234567 convert to 14567) or convert the numbers in the existing column. How do I format or combine Left, Right and Mid commands (or is there a different formula I should use)?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Here are two different formulas that will each return the value you want...

=REPLACE(A1,1,4,MID(A1,2,1))

=MID(A1,2,1)&RIGHT(A1,4)
 
Upvote 0
Welcome to the Board!

Try (for an entry in cell A1):
=MID(A1,2,1) & MID(A1,5,4)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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