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


ItemNumberRetailPriceSourcePriceTitle
SKU111.45SOURCE117.57Title1
SKU111.45SOURCE215.95Title2
SKU111.45SOURCE215.95Title3
SKU111.45SOURCE39.54Title4
SKU111.45SOURCE49.31Title5
SKU236.95SOURCE140.06Title6
SKU236.95SOURCE233.95Title7
SKU236.95SOURCE233.95Title8
SKU236.95SOURCE329.89Title9
SKU236.95SOURCE430.17Title10

<colgroup><col span="5"></colgroup><tbody>
</tbody>


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))




<tbody>
</tbody>
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,215,223
Messages
6,123,711
Members
449,118
Latest member
MichealRed

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