Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cell splitting 1

Status
Not open for further replies.

LewisReeder

IS-IT--Management
Jul 18, 2005
38
0
0
US
I currently have an excel file with thousands of employees and their employee numbers, both in one cell. Formatted as such, John Doe - 12345. I need to create a new cell for the employee number for the database I am creating. I know their is a way to extract just the number rather than copy and paste each number in a new cell. Is their a way to search the string and extract anything after the - ? Could someone please help.

Thanks,
Lewis
 
Hi Lewis,

If you highlight the whole range then use the 'Data' - 'Text to columns' wizard. Set the option to Delimited and check 'Other' in the next step and use - to separate the field.

Another option, if all the employee numbers are the same length, would be to use the formula "=right(A1,5)".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top