Length formula

psuLemon

New Member
Joined
Aug 10, 2009
Messages
42
I would like to start off by saying I have searched for about day and can't seem to get the right formula. Currently, I have a set of numbers (employee ID's). Originally they are all 10 digits but when I pull them out of one of my systems it eliminates the zero's in the front end but in my other system they are 10 digits. I am trying to figure out the formula where I can take the ones that aren't ten digits and make them ten digits long. For example:

Employee ID Name
1234 Employee 1
12345 Employee 2
123456 Employee 3

Essentially, I just want to know how to make the employee id's 10 digits long without using special formats because I can't do a vlookup on that.

Thanks,

Lemon
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,050
Messages
6,169,813
Members
452,283
Latest member
moyerj26

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