index match question

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!


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:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about


Excel 2013/2016
ABCDEFGH
1ItemNumberRetailPriceSourcePriceTitle
2SKU111.45SOURCE117.57Title1SKU1Title4
3SKU111.45SOURCE215.95Title2Source3
4SKU111.45SOURCE215.95Title3
5SKU111.45SOURCE39.54Title4
6SKU111.45SOURCE49.31Title5
7SKU236.95SOURCE140.06Title6
8SKU236.95SOURCE233.95Title7
9SKU236.95SOURCE233.95Title8
10SKU236.95SOURCE329.89Title9
11SKU236.95SOURCE430.17Title10
Input
Cell Formulas
RangeFormula
H2{=INDEX(E2:E11,MATCH(G2&"|"&G3,A2:A11&"|"&C2:C11,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
You'll need something like this array formula (entered using control+shift+enter):
Code:
=INDEX(data!$G$2:$G$11,MATCH(A2&"|SOURCE2",data!$A$2:$A$11&"|"&data!$C$2:$C$11,0))
 
Upvote 0
It looks like you are searching for a row that has SKU1 as the ItemNumber (you are actually looking at whatever SKU is in row 2, which happens to be SKU1) and SOURCE3 (not Source2, as your description says) as the Source, and return the Title, which in this example is Title4.

I don't understand your column references, because it look like Price is in column D, and title in column E, and you have shown nothing for F and G.

You cannot do that with a simple INDEX/MATCH.

Here is a solution based on your data and description. Note that I have used an array formula. To enter an array formula, once you type the formula, hit CTRL+SHIFT+ENTER (not just ENTER). If you have it correctly you will see {braces} around your formula. You cannot type in the braces, they are just there to indicate an array formula.

sku.JPG
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,201
Members
453,022
Latest member
RobertV1609

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