Three way lookup using Match and Index

stevo239

New Member
Joined
Jan 30, 2014
Messages
26
I've done quite a bit of reserach on this but can't quite master the formula required for the following:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Result[/TD]
[TD]Arson[/TD]
[TD]Crime[/TD]
[TD]Flood[/TD]
[TD]Subsidence[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Not Covered[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Negligible[/TD]
[TD]0.85[/TD]
[TD]0.85[/TD]
[TD]0.85[/TD]
[TD]0.85[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Low[/TD]
[TD]0.95[/TD]
[TD]0.95[/TD]
[TD]0.95[/TD]
[TD]0.95[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Moderate[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]High[/TD]
[TD]1.10[/TD]
[TD]1.10[/TD]
[TD]1.10[/TD]
[TD]1.10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Extreme[/TD]
[TD]1.15[/TD]
[TD]1.15[/TD]
[TD]1.15[/TD]
[TD]1.15[/TD]
[/TR]
</tbody>[/TABLE]

* Assume Location is A1.

What is the formula if I want to Location 2, Result Moderate and Flood?

Thanks
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
=offset(startcell,match("moderate",b2:b7,0)+1,match("flood", c1:c4,0)+2)

suggest startcell is A1 NOT TESTED
 
Upvote 0
Try the SUMPRODUCT function. You can compare multiple items and return a result based on that.


How ow would the formula look if I wanted to variate the options from the lookup table as the original suggested formula is restricted to the options I suggested.
 
Upvote 0
my c1 to c4 should have read C1 to G1

you could make that C1:Z1 to allowfor more risks to be added
 
Upvote 0
Thanks for all the responses but it's not really doing what I need it to. I need to write a formula whereby if I select Location "2" (from a predetermined cell, say A10) and a Result of "Negligible" (from say A11) I should get a response of 0.85.

[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Result[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Not Covered[/TD]
[TD]1.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Negligible[/TD]
[TD]0.85[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Low[/TD]
[TD]0.95[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Moderate[/TD]
[TD]1.00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]High[/TD]
[TD]1.10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Extreme[/TD]
[TD]1.15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The vlookup will work for the Result i.e. if Moderate then 1.00 but I can't seem to figure out how to bring in the Location criteria.
 
Upvote 0
unless the risk profile at each location is different, the location is irrelevant, you are finding negligible and stepping one column to the right - a standard vlookup

going back to your post 1 you find negligible and then step across to the risk type, a classic use of offset, match,match
 
Upvote 0

Forum statistics

Threads
1,222,149
Messages
6,164,238
Members
451,882
Latest member
Bigtop

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