Auto Populate Cells based on Matching Range Text

bhamm

New Member
Joined
Jun 11, 2015
Messages
7
Hello

I'm working in Excel 2007 on Windows 7.

On Sheet 3, I have a list of towns, with corresponding Postal Codes - think Zip Codes, but with letters, so they are a string of text. Town names are from A13 to A70. Corresponding Postal Codes are from B13-B70.

On Sheet 1, I have a database of addresses. Towns are in the K column and Postal Codes in L column.

I want to run a formula that automatically populates the Postal Codes in Sheet 1 L column. In otherwords, Sheet L2 would check if K2 had a match with towns in Sheet3, A13-A70, and if true, display the corresponding Postal Code. Otherwise, it would be left blank.

In other words, if I enter the same town in Sheet 1 K2 as I did in Sheet 3 A26, then Sheet 1 L2 displays Sheet 3 B26.

Many thanks in advance for your help
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Welcome to the board.

In L2, try:

=IFERROR(VLOOKUP(K2,Sheet3!$A$13:$B$70,2,0),"")
 
Upvote 0

Forum statistics

Threads
1,203,605
Messages
6,056,269
Members
444,853
Latest member
sam69

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