help

Aidan

Board Regular
Joined
May 14, 2004
Messages
121
help - might be lookup but not sure

I have two sheets

In sheet 1 in column B I have a list of local councils in Scotland - column c onwards has the postcodes associated with each of these local authorities

In sheet 2 I have postcodes in column c with number and amount in columns d and e.

I want to (in sheet 3) look up the values in column c in sheet 2 against sheet 1 and then return the values associated to each local council....

Any help would be appreciated

Cheers
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Re: help - might be lookup but not sure

Does your data on sheet 1 look a bit like this ?

Col B............Col C........Col D.......Col E
Edinburgh......EH1..........EH2.........EH3....and so on....

So there will be a different number of postcodes, and therefore columns, for each council ?
 
Upvote 0
OK. In that case, are you able to transpose your postcode data ?
So, for example,

EH1.....EH2.....EH3 across 3 columns
becomes
EH1
EH2
EH3
in the same column, across 3 rows ?
Use Copy, Paste Special, Transpose.
I'm not sure how many councils there are in Scotland, but even if there are, say, 20, then it should only take you a couple of minutes to do this.
 
Upvote 0
Hi Gerald

Transposed the rows and colums but still unsure of the right formula to use :(
 
Upvote 0
OK good.

First, not sure why you need a third sheet, I would just do it on the 2 sheets you already have.

In sheet 1.....
Code:
=vlookup(B1,sheet2!c1:e100,2,false)
should bring up the "number" for the first postcode.

This assumes your first postcode on sheet1 is in B1, your first postcode on sheet2 is in C1, and you have 100 of them. Adapt as required.
Also, you can adapt this formula for the "amount".
 
Upvote 0

Forum statistics

Threads
1,224,578
Messages
6,179,647
Members
452,934
Latest member
mm1t1

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