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.
 

Some videos you may like

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Glove_Man

Well-known Member
Joined
Feb 20, 2005
Messages
578
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.
 

PA HS Teacher

Well-known Member
Joined
Jul 17, 2004
Messages
2,838
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,413
Messages
5,595,998
Members
414,037
Latest member
Roamingsmile

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
Top