Excel: Fill Black Cells based on Postcodes, Region or City

SGMacro

New Member
Joined
Jul 11, 2015
Messages
16
I have an incomplete address list with lost of blank cells under either postcodes, regions or cities.

If I input a list of UK Postcodes, Regions and City into a separate sheet within the same workbook how can I use excel to fill the blank cells within a separate worksheet within the same workbook by cross referencing the data?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I would use the Index/Match functions to search for the missing items in the uploaded table. You will have to do this three times to look for Postcodes, Regions and Cities. You will have to embed the Index/Match in a if statement for the blank cells.
 
Upvote 0
Thanks Alan,

Ive not used this feature before and have pulled together the following:

Code:
=INDEX($C$2:$C$5,MATCH(D2,IF($B$2:$B$5=E2,$A$2:$A$5),0))

but it only matches the exact value:( How would I get it to match the first 2, 3 or 4 elements of data within a cell because postcodes can vary in digits?

I have found the following code but not sure where to enter if within the above array and cannot get it to work:

Code:
<code style="margin: 0px; padding: 0px; font-style: inherit; line-height: 12px;">=LEFT(A2,1)&IF(AND(MID(A1,2,1)>="0",MID(A1,2,1)<="9"),"",MID(A1,2,1))


</code>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,932
Members
449,480
Latest member
yesitisasport

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