Changing location Code to a Proper Name

rochelann

New Member
Joined
Feb 4, 2005
Messages
1
I work with a spreadsheet which designates location as a code (example: F044). I would like my spreadsheet to automatically change this code to a Proper Name (in the instance of F044 I would like it to automatically change to Findlay, OH)

I have no idea how to do this. Can anyone help?

Thank You,

Shelly
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,218
Office Version
  1. 365
Platform
  1. Windows
Shelly

Do you have a list of these codes and the proper name?

If you do then you could use a VLOOKUP worksheet function to return the proper name in another cell.

If you actually want it to change automatically in the cell you enter the code in then I think you would need to use VBA.
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
7,994
Welcome to the board!

Set up a two-column table with code in the first column and proper name in the second column.

Then, use =vlookup(a1, my_table,2,0)

Where A1 is the code you'd like to look up the name of, and my_table is the two-column table as described above.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,721
Messages
5,597,758
Members
414,171
Latest member
12Rev79

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