have a word replace a number in a cell

prsmith99

New Member
Joined
Feb 21, 2005
Messages
3
I have to fill out spread sheet with different peoples names. It would be easiler for me to input their 5 number employee number. Is there a way to input a id number into a cell, and have it put the persons last name there instead? For example, I would put 12345 in an cell and the name Smith would appear. Thanks for any and all help.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
It Could be done via a macro.

But honestly easier to have one big table with all the empoyee numbers in it and use a vlookup to that table to put the employee name in the next column.

So Col A would have the employtee number which you input.

Col B would have a VLOOKUP command that puts the Employee name in COl B.
 
Upvote 0
If the employee id numbers are unique, a table and a vlookup is probably your best best.

In F2 below:
=VLOOKUP(E2,A1:C10,2,0)

In G2 below:
=VLOOKUP(E2,A1:C10,3,0)
Book1
ABCDEFG
11579BobJones
21108JoeSmith526MattJones
31653SallySanders
41406SuzyJackson
5658JeffSmith
61464SamSmith
7526MattJones
81609KellyBecker
91284JeremySamuelson
10394FredJones
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

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