filling other cells based on a postcode?

Dayveez

New Member
Joined
Jan 25, 2012
Messages
8
A1---------- A2------------- A3
Postcode--- County-------- Country

<table style="width: 342px; height: 49px;" border="0" cellpadding="0" cellspacing="0"><colgroup><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:5961;width:122pt" width="163"> <col style="mso-width-source:userset;mso-width-alt:9106;width:187pt" width="249"> </colgroup><tbody><tr style="height:21.0pt" height="28"> <td class="xl63" style="height:21.0pt;width:48pt" width="64" height="28">BT32
</td> <td class="xl63" style="width:122pt" width="163"> County Down
</td> <td class="xl63" style="width:187pt" width="249"> England
</td> </tr> <tr style="height:21.0pt" height="28"> <td class="xl63" style="height:21.0pt" height="28">BT33</td> <td class="xl63"> ?</td> <td class="xl63"> ?
</td> </tr> <tr style="height:21.0pt" height="28"> <td class="xl63" style="height:21.0pt" height="28">BT34
</td> <td class="xl63"> County Down
</td> <td class="xl63"> England
</td> </tr> </tbody></table>
I have a database of UK postcodes on a excel sheet with all the counties and countries next to them.
I want to put in a postcode in any cell for example: BT33, and want it to automatically tell me next to it in 'A2' that its 'county down' and in 'A3' that its 'England'.
..So that i dont have to keep typing 'county down' and 'england' every time someone calls me from that area and i input their details. Instead want to just type BT33 and it comes up.

Please help. :confused:
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
The formula is good.

I supposte you get ? as answer.

In that case it's ok, because c4 is "?"

Can you explain what's the problem.

Otherwise upload the data instaed of a picture.
 
Upvote 0
The first time you fill the list manualy.

After that you can use the data in the list with a Vlookup function.


The list needs to be sorted from low to high.

If not sorted right the Vlookup function won't work well.
 
Upvote 0
If you follow the HTML maker link in my sig you'll be able to post working shots of your sheets. From there someone can help set you up with a VLOOKUP based on your setup.
 
Upvote 0
do i have to download anything to go with it? neither of them will open with excel 2007 or this xml converter thing its default to open with.
 
Upvote 0
Yes, you have to download the add-in, then install it. There's a Word doc at the download location that explains how to do it.
 
Upvote 0

Forum statistics

Threads
1,216,753
Messages
6,132,514
Members
449,731
Latest member
dasda34

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