monsierexcel
New Member
- Joined
- Nov 19, 2018
- Messages
- 29
hey all, I have a question about using index/match to return a value
[TABLE="width: 360"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]ItemNumber[/TD]
[TD]RetailPrice[/TD]
[TD]Source[/TD]
[TD]Price[/TD]
[TD]Title[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE1[/TD]
[TD="align: right"]17.57[/TD]
[TD]Title1[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]15.95[/TD]
[TD]Title2[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]15.95[/TD]
[TD]Title3[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE3[/TD]
[TD="align: right"]9.54[/TD]
[TD]Title4[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE4[/TD]
[TD="align: right"]9.31[/TD]
[TD]Title5[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE1[/TD]
[TD="align: right"]40.06[/TD]
[TD]Title6[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]33.95[/TD]
[TD]Title7[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]33.95[/TD]
[TD]Title8[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE3[/TD]
[TD="align: right"]29.89[/TD]
[TD]Title9[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE4[/TD]
[TD="align: right"]30.17[/TD]
[TD]Title10[/TD]
[/TR]
</tbody>[/TABLE]
How would i return Title 4 from SKU1 and Source2?
this is in a worksheet called "data"
this is what i have tried so far but cant quite get my head around it!
[TABLE="width: 320"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 360"]
<colgroup><col span="5"></colgroup><tbody>[TR]
[TD]ItemNumber[/TD]
[TD]RetailPrice[/TD]
[TD]Source[/TD]
[TD]Price[/TD]
[TD]Title[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE1[/TD]
[TD="align: right"]17.57[/TD]
[TD]Title1[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]15.95[/TD]
[TD]Title2[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]15.95[/TD]
[TD]Title3[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE3[/TD]
[TD="align: right"]9.54[/TD]
[TD]Title4[/TD]
[/TR]
[TR]
[TD]SKU1[/TD]
[TD="align: right"]11.45[/TD]
[TD]SOURCE4[/TD]
[TD="align: right"]9.31[/TD]
[TD]Title5[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE1[/TD]
[TD="align: right"]40.06[/TD]
[TD]Title6[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]33.95[/TD]
[TD]Title7[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE2[/TD]
[TD="align: right"]33.95[/TD]
[TD]Title8[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE3[/TD]
[TD="align: right"]29.89[/TD]
[TD]Title9[/TD]
[/TR]
[TR]
[TD]SKU2[/TD]
[TD="align: right"]36.95[/TD]
[TD]SOURCE4[/TD]
[TD="align: right"]30.17[/TD]
[TD]Title10[/TD]
[/TR]
</tbody>[/TABLE]
How would i return Title 4 from SKU1 and Source2?
this is in a worksheet called "data"
this is what i have tried so far but cant quite get my head around it!
Code:
=INDEX(data!A2:G11,MATCH(A2,A2:A11,0),MATCH(FIND("SOURCE3",data!D:D,1),D2:D11,0))
[TABLE="width: 320"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Last edited: