INDEX & SUMPRODUCT to return a text value

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
[TABLE="width: 236"]
<tbody>[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]Strawberries[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]Raspberries[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 272"]
<tbody>[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]Apples[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]Pears[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]Bananas[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]Strawberries[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]Raspberries[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]Kiwi[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]Oranges[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]Clementines[/TD]
[/TR]
[TR]
[TD]W1-A[/TD]
[TD]6[/TD]
[TD]1[/TD]
[TD]Satsumas[/TD]
[/TR]
</tbody>[/TABLE]


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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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