Pull only 3 digits out of one cell and place

Captain Randy

Board Regular
Joined
Sep 26, 2010
Messages
68
I have cells with 7 digits in each cell.
I want to pull the first, four and sixth digit out of these cells and place them in the cell next to it. (like copy and paste)

Is there a formula that I can use?

Thank You in advance for help.
Randy:eeek:
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I have cells with 7 digits in each cell.
I want to pull the first, four and sixth digit out of these cells and place them in the cell next to it. (like copy and paste)

Is there a formula that I can use?

Thank You in advance for help.
Randy:eeek:
Try this...

A1 = 1234567

Entered in B1:

=--(LEFT(A1)&MID(A1,4,1)&MID(A1,6,1))

Will return 146 (as a numeric number)

If your strings might start with leading zeros:

A1 = 0234567

Then use this version but be aware that this version returns a TEXT string:

=LEFT(A1)&MID(A1,4,1)&MID(A1,6,1)
 
Upvote 0
Just want to Say "THANK YOU guys for your help !!! This works great...

If you need to know something, just ask the pro's

Thanks to danzon, rudfaden, T Valko, West Man

This is why, this room is so great, lots of good helping guys in here!!!
 
Upvote 0
Just want to Say "THANK YOU guys for your help !!! This works great...

If you need to know something, just ask the pro's

Thanks to danzon, rudfaden, T Valko, West Man

This is why, this room is so great, lots of good helping guys in here!!!
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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