INDEX & SUMPRODUCT to return a text value

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
617
Office Version
  1. 2019
Platform
  1. Windows
W1-A11Apples
W1-A12Strawberries
W1-A13Raspberries

<tbody>
</tbody>


W1-A11Apples
W1-A21Pears
W1-A31Bananas
W1-A12Strawberries
W1-A13Raspberries
W1-A32Kiwi
W1-A41Oranges
W1-A51Clementines
W1-A61Satsumas

<tbody>
</tbody>


I am trying to create a formula for the first table to be placed in column 4, that can look at it's 3 values to the left in columns A, B and C and find a match in the 2nd table. In this example, Table 1, A4 would return 'Apples' as it immediately finds a match for 'W1-A', '1' & '1' in the 1st row of Table 2. The 2nd row of Table 1 returns Strawberries as it finds it's matches in Row 4 of Table 2.

I am getting odd results using an INDEX & SUMPRODUCT functions. Can anyone help?

P.S. My table may not start in row 1 of the spreadsheet
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi,

You can use the INDEX/MATCH Array formula to be confirmed by CSE (Control, Shift, Enter), instructions below,
Or, Non-Array, normally entered, LOOKUP formula:


Book1
ABCDE
1W1-A11ApplesApples
2W1-A12StrawberriesStrawberries
3W1-A13RaspberriesRaspberries
4
5
6W1-A11Apples
7W1-A21Pears
8W1-A31Bananas
9W1-A12Strawberries
10W1-A13Raspberries
11W1-A32Kiwi
12W1-A41Oranges
13W1-A51Clementines
14W1-A61Satsumas
Sheet434
Cell Formulas
RangeFormula
E1=LOOKUP(2,1/((A$6:A$14=A1)*(B$6:B$14=B1)*(C$6:C$14=C1)),D$6:D$14)
D1{=INDEX(D$6:D$14,MATCH(A1&"|"&B1&"|"&C1,A$6:A$14&"|"&B$6:B$14&"|"&C$6:C$14,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Change/adjust cell references/range as needed.
 
Last edited:
Upvote 0
Thanks Jtakw, thats very useful, problem solved. Thanks

Dan
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,794
Members
449,468
Latest member
AGreen17

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