Lookup with multiple variable

meami111

New Member
Joined
Dec 1, 2010
Messages
36
I have the following sample database starting with A1 as the 1st column heading:
[TABLE="width: 452"]
<colgroup><col><col><col span="5"></colgroup><tbody>[TR]
[TD]Colour[/TD]
[TD]Shape[/TD]
[TD]Taste[/TD]
[TD] Blank[/TD]
[TD]Colour[/TD]
[TD]Shape[/TD]
[TD]Taste[/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]Sphere[/TD]
[TD]Sweet[/TD]
[TD] [/TD]
[TD]Red[/TD]
[TD]Sphere[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]Triangle[/TD]
[TD]Bitter[/TD]
[TD] [/TD]
[TD]Blue[/TD]
[TD]Triangle[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]Square[/TD]
[TD]Hot[/TD]
[TD] [/TD]
[TD]Green[/TD]
[TD]Square[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]Rectangle[/TD]
[TD]Tangy[/TD]
[TD] [/TD]
[TD]Yellow[/TD]
[TD]Rectangle[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]Sphere[/TD]
[TD]Sweet[/TD]
[TD] [/TD]
[TD]Blue[/TD]
[TD]Sphere[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]Triangle[/TD]
[TD]Bitter[/TD]
[TD] [/TD]
[TD]Green[/TD]
[TD]Triangle[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Yellow[/TD]
[TD]Sphere[/TD]
[TD]Hot[/TD]
[TD] [/TD]
[TD]Yellow[/TD]
[TD]Sphere[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Red[/TD]
[TD]Triangle[/TD]
[TD]Bitter[/TD]
[TD] [/TD]
[TD]Red[/TD]
[TD]Triangle[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Blue[/TD]
[TD]Square[/TD]
[TD]Hot[/TD]
[TD] [/TD]
[TD]Blue[/TD]
[TD]Square[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Green[/TD]
[TD]Rectangle[/TD]
[TD]Tangy[/TD]
[TD] [/TD]
[TD]Green[/TD]
[TD]Rectangle[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]

I want to find out the Lookup value for Taste in column G. Will sumproduct/sumifs work here? If not how can we get the look up value?

Thanks in advance for your help
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
In G2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($C$2:$C$11,MATCH($E2,IF($B$2:$B$11=$F2,$A$2:$A$11),0)),"no found")
 
Upvote 0
Hi Aladin

Can you please tell what is to be done for the following instruction
"In G2 control+shift+enter, not just enter, and copy down"

I selected the G column with Ctrl+Shft+Enter and then pasted the formula in G2 and then again pressed Ctrl+Shft+Enter. It is copying the 1st result in all the rows.

Looking forward to your support

Thanks
 
Upvote 0
Type the formula in G2. Then press down the control and the shift keys at the same time while you hit the enter key. If done correctly, Excel itself puts a pair of { and } around the formula in recognition.
 
Upvote 0
Dear Aladin

Have tried put the array execution suggested by you. While it is working for other formulas, for the one suggested by you, I am only getting the first result repeated in all cells. Can you please check at your end if the desired result is coming?

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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