Index/Match formula

jsp33

New Member
Joined
Aug 31, 2018
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I am trying to pull data from one worksheet into another worksheet. I think using Index/Match is the way to go, but I'm not sure how (I tried Vlookup and don't think that's the right formula).

Worksheet one has numbers in column A (say 1 to 10), and in Column C has the data (Town visited) I want to pull in to worksheet two. Worksheet 2 has the SAME numbers, with names associated with the numbers, and so on occasion there may be 2 or 4 number 4's with different names. I want to use the numbers in column A of both worksheets to grab the Town and match it up with the name. So in the second worksheet, I want everything that has a 1 to have 'Chicago' next to it, and everything that has a 2 to have 'New York', etc. See below for an example
[TABLE="width: 500"]
<tbody>[TR]
[TD]1
[/TD]
[TD]Tuesday
[/TD]
[TD]Chicago
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Wednesday
[/TD]
[TD]New York
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Tuesday
[/TD]
[TD]Atlanta
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Friday
[/TD]
[TD]San Francisco
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Saturday
[/TD]
[TD]Austin
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]WORKSHEET 1
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]WORKSHEET 2
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Jane Smith
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]John Smith
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Sam Smith
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Steve Jones
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Allen Stevens
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]ANSWER I'M LOOKING FOR
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Jane Smith
[/TD]
[TD]Chicago
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]John Smith
[/TD]
[TD]Chicago
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Sam Smith
[/TD]
[TD]Chicago
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Steve Jones
[/TD]
[TD]New York
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try, assuming both your sheets start in row 1:

=VLOOKUP(A1,Sheet1!$A$1:$C$100,3,0)

If you have headers, change the 1s in the formula accordingly.
 
Upvote 0
Try this:


Excel 2010
ABC
11Jane SmithChicago
21John SmithChicago
31Sam SmithChicago
42Steve JonesNew York
53Allen StevensAtlanta
PeopleCities
Cell Formulas
RangeFormula
C1=VLOOKUP(A1,Cities!$A$1:$C$5,3,FALSE)
 
Upvote 0
Try, assuming both your sheets start in row 1:

=VLOOKUP(A1,Sheet1!$A$1:$C$100,3,0)

If you have headers, change the 1s in the formula accordingly.



Thank you, that worked. I tried a Vlookup and it did not work, not sure what I did wrong!
 
Upvote 0
The functions can be finicky, if you put a comma or a zero in the wrong place, it won't work.

Glad we could help! :)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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