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
1
Tuesday
Chicago
2
Wednesday
New York
3
Tuesday
Atlanta
4
Friday
San Francisco
5
Saturday
Austin
WORKSHEET 1

<tbody>
</tbody>
WORKSHEET 2
1
Jane Smith
1
John Smith
1
Sam Smith
2
Steve Jones
3
Allen Stevens

<tbody>
</tbody>
ANSWER I'M LOOKING FOR
1
Jane Smith
Chicago
1
John Smith
Chicago
1
Sam Smith
Chicago
2
Steve Jones
New York

<tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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