Formula returning data matching two criteria from a table

lechev65

Board Regular
Joined
Mar 7, 2010
Messages
147
Hi, </SPAN>
I have the below data in “Sheet2”</SPAN>
A</SPAN></SPAN>
B</SPAN></SPAN>
C</SPAN></SPAN>
D</SPAN></SPAN>
E</SPAN></SPAN>
F</SPAN></SPAN>
1</SPAN></SPAN>
ITEM</SPAN></SPAN>
2008</SPAN></SPAN>
2009</SPAN></SPAN>
2010</SPAN></SPAN>
2011</SPAN></SPAN>
2012</SPAN></SPAN>
2</SPAN></SPAN>
bolt</SPAN></SPAN>
9-Aug-08</SPAN></SPAN>
6-Jun-09</SPAN></SPAN>
10-Oct-10</SPAN></SPAN>
6-Jan-11</SPAN></SPAN>
7-Jul-12</SPAN></SPAN>
3</SPAN></SPAN>
nut</SPAN></SPAN>
6-Jun-08</SPAN></SPAN>
2-Feb-09</SPAN></SPAN>
9-Sep-10</SPAN></SPAN>
1-Aug-11</SPAN></SPAN>
9-Sep-12</SPAN></SPAN>
4</SPAN></SPAN>
splint</SPAN></SPAN>
7-Mar-08</SPAN></SPAN>
1-Jan-09 </SPAN></SPAN>
8-Aug-10</SPAN></SPAN>
9-Sep-11</SPAN></SPAN>
9-Aug-12</SPAN></SPAN>
5</SPAN></SPAN>
frame</SPAN></SPAN>
2-Jan-08 </SPAN></SPAN>
7-Jul-09</SPAN></SPAN>
2-Jan-10</SPAN></SPAN>
7-Jul-11</SPAN></SPAN>
6-Jun-12</SPAN></SPAN>
6 </SPAN></SPAN>
bar</SPAN></SPAN>
3-Mar-08</SPAN></SPAN>
9-Sep-09</SPAN></SPAN>
3-Mar-10</SPAN></SPAN>
12-Dec-11</SPAN></SPAN>
10-Oct-12</SPAN></SPAN>
7</SPAN></SPAN>
gear</SPAN></SPAN>
5-May-08</SPAN></SPAN>
4-Apr-09</SPAN></SPAN>
6-Jun-10</SPAN></SPAN>
7-Sep-11</SPAN></SPAN>
9-Sep-12</SPAN></SPAN>

<TBODY>
</TBODY>

I need to get data in “Sheet1” matching item and year criteria.</SPAN>
A</SPAN></SPAN>
B</SPAN></SPAN>
1</SPAN></SPAN>
ITEM</SPAN></SPAN>
2009</SPAN></SPAN>
2</SPAN></SPAN>
nut</SPAN></SPAN>
2-Feb-09</SPAN></SPAN>
3</SPAN></SPAN>
frame</SPAN></SPAN>
7-Jul-09</SPAN></SPAN>
4</SPAN></SPAN>
bar</SPAN></SPAN>
9-Sep-09</SPAN></SPAN>

<TBODY>
</TBODY>

Thank you in advance.</SPAN>
Krasimir</SPAN>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Copy down Cell B2 Formula
Excel Workbook
AB
1ITEM2009
2nut2-Feb-09
3frame7-Jul-09
4bar9-Sep-09
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B2=INDEX(Sheet2!$B$2:$F$7,MATCH(Sheet1!$A2,Sheet2!$A$2:$A$7,0),MATCH(Sheet1!B$1,Sheet2!$B$1:$F$1,0))
 
Upvote 0
What Index does..

Returns the coorinates of a matrix..

=Index(SourceDataTable,Row#Desired,Column#Desired)

Glad it helped you..

Jim
 
Upvote 0

Forum statistics

Threads
1,203,094
Messages
6,053,507
Members
444,667
Latest member
KWR21

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