Index/Match across different sheets

Blackadar

New Member
Joined
Jan 28, 2010
Messages
2
This is probably an easy question for most of you, but it's killing me. I tried searching before I posted this, but the suggestions given didn't seem to work for me.

I need to look up data from a cell on one Excel sheet, compare it to a list on a 2nd sheet and when they equal, take a value from a different column on the 2nd sheet and drop it back on the 1st sheet. Since that's a horrible explanation, let me try explaining it this way:

Sheet 1
Column A has a long list of code type 1s
Column E has a long list of code type 2s

Sheet 2
Cell C2 has code 1
Cell E2 needs code 2

I know it should take an index/match function, but nothing I try is working. What I'm trying is the following formula in Cell E2 of sheet 2:

=INDEX('Sheet 1'!A:A,MATCH(C2,'Sheet 1"!E:E,0),5)

But all I get is no result. What's driving me bonkers is that if I copy everything over to a single sheet, that formula works fine.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Welcome to the board...

here's the basic syntax

=INDEX(ReturnRange,MATCH(LookupValue,SearchRange,0))

According to your explaination..
ReturnRange is 'Sheet 1'!E:E (the range you want to return a value from)
LookupValue is 'Sheet 2'!C2 (the value you want to find a match for)
SearchRange is 'Sheet 1'!A:A (the range to search for the lookupvalue)

So try this in Sheet 2 E2

=INDEX('Sheet 1'!E:E,MATCH('Sheet 2'!C2,'Sheet 1'!A:A,0))
 

leighnea

New Member
Joined
Jul 25, 2009
Messages
18
I am trying to do something similar however when I am putting in the formula it is saying... "We found a problem with this formula". The formula I am using is =INDEX(Sheet3!D:D;MATCH(Aging!A2&Aging!C2;Sheet3!G:G&Sheet3!F:F;0)).
 

mern1

New Member
Joined
Jun 8, 2017
Messages
9
how would you do this so that it may find multiple matches rather than the first one only?
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,608
Messages
5,765,403
Members
425,284
Latest member
fishymuffin

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
Top