quick excel problem

Log in to stop seeing adverts
This page may contain links to companies such as eBay and Amazon. As an affiliate of these sites I may earn commission if you click the link and make a purchase

Status
Not open for further replies.

Joe_Fox

Well-Known Member
Hi,

I have two worksheets:

First one contains a long list of names with office
Second one contains a shorter list of names only

All names in the second worksheet are present in the first worksheet.

What I need to do is pull the office from the first sheet into the second sheet alongside the relevant name:

For example:

sheet1

Code:
[b]name   Office[/b]
Joe    Leeds
Bob    Liverpool
Carol  Manchester


sheet 2

Code:
[B]name[/B]
Joe
Bob


I need the result to be

Code:
[B]name  Office[/B]
Joe   Leeds
Bob   Liverpool

Any ideas?
 
Last edited:
That's bollocks. Everybody knows that I don't work at the Liverpool office.
 
Cheers
 
use a vlookup

=VLOOKUP($A1,Sheet1!$A$1:$B$3,2,FALSE)

Assuming columns are A and B

VLOOKUPs are for amateurs ;)

use MATCH & INDEX :)

oh and you don't need the FALSE if you're feeling lazy, you can just put the comma in =VLOOKUP($A1,Sheet1!$A$1:$B$3,2,)
 
give us an example of how you would use the MATCH & INDEX then mate.
 
ok, attached

the formulae produce the same results..

but a VLOOKUP means you can't alter the lookup range at all

with MATCH/INDEX you can use different sheets or even have the two columns staggered with one way below

and VLOOKUP can only go from left to right...MATCH/INDEX can go anyways
 
ok, attached

the formulae produce the same results..

but a VLOOKUP means you can't alter the lookup range at all

with MATCH/INDEX you can use different sheets or even have the two columns staggered with one way below

and VLOOKUP can only go from left to right...MATCH/INDEX can go anyways


informative - thanks
 
oooh a wider audience :)

shall i do a demo SUMPRODUCT too? :icon_bigg

You can do sorting on a column other than the first in a few days time. And making the result of a formula act as a number and not as a formula.
 
oooh a wider audience :)

shall i do a demo SUMPRODUCT too? :icon_bigg


I use excel all the time at work but since my computer studies O level dealt with punch cards, paper tapes and programming in BASIC, with an overnight link to the mainframe at County Hall, and I've never had any training in excel, my knowledge is unfortunately limited to the basics. I'm aware there are often better ways of doing things than the way I'm using and I do try to pick my younger colleagues' brains.

I'm sad enough to find this thread interesting :icon_redf
 
I use excel all the time at work but since my computer studies O level dealt with punch cards, paper tapes and programming in BASIC, with an overnight link to the mainframe at County Hall, and I've never had any training in excel, my knowledge is unfortunately limited to the basics. I'm aware there are often better ways of doing things than the way I'm using and I do try to pick my younger colleagues' brains.

I'm sad enough to find this thread interesting :icon_redf

mrexcel.com is good, but feel free to ask anything on here...
 
Status
Not open for further replies.
Log in to stop seeing adverts

P Pld Pts
1Liverpool1639
2Chelsea1735
3Arsenal1733
4Nottm F1731
5Bournemouth1728
6Aston Villa1728
7Manchester C  1727
8Newcastle1726
9Fulham1725
10Brighton1725
11Tottenham 1723
12Brentford1723
13Manchester U1722
14West Ham1720
15Everton1616
16Palace1716
17Leicester1714
18Wolves1712
19Ipswich1712
20Southampton176

Latest posts

Back
Top