Trimming numbers

Kylor

New Member
Joined
Jul 25, 2002
Messages
48
I am using Excel 2000. I have a list of numbers that are 12 characters long. If the actual number does not take up all 12 places the space is left blank.
For example:
123456789 3
123456789123

What I need to do is to delete the first two digits of every line and also the last digit. So I would end up with:
3456789
345678912

Thanks
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thanks, I need to take off the first two digits and the last one off of a 12 digit long number. I guess there must be some kind of trim function?
 
Upvote 0
if what you are using works, stick with it. But based on your first example, you may need to expand it a little to
=MID(LEFT(A1,FIND(" ",A1&" ")),3,9)+0

good luck
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,431
Members
451,705
Latest member
Priti_190

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