Logic Matrix Lookup.

450nick

Well-known Member
Joined
May 11, 2009
Messages
507
Hi there. I'm making a little model to build up a cost based on a number of list ranges with look ups to a pricing database. I want to be able to look up whether a selection is valid based on a logic matrix that I have made. To do this, I have created a table in the following style:

Selection 1a | Selection 1b | Selection 2a | Selection 2b
Selection 1a X
Selection 1b X
Selection 2a X
Selection 2b X

In this example, I could have two drop down boxes to select option 1 a or b and option 2 a or b. Is there a way to run a lookup so when I make my selection, I check this array to see whether there are any conflicts between the selection I have just made, and the other current selection in my drop down boxes? In my real example I have around 20 selection fields, each with around 5 options so this needs to scale up to a large logic array. Thoughts? I could do it with a macro but I'd rather it run with formula run from the sheet if this is feasible?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][th]
G
[/th][th]
H
[/th][th]
I
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]Dropdown 1[/td][td]Dropdown2[/td][td]Allowed?[/td][td][/td][td][/td][td]Selection 1a [/td][td] Selection 1b [/td][td] Selection 2a [/td][td] Selection 2b[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]Selection 1a [/td][td]Selection 1a [/td][td]
FALSE​
[/td][td][/td][td]Selection 1a [/td][td]
FALSE​
[/td][td]
TRUE​
[/td][td]
TRUE​
[/td][td]
TRUE​
[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td][/td][td][/td][td][/td][td][/td][td] Selection 1b [/td][td]
TRUE​
[/td][td]
FALSE​
[/td][td]
TRUE​
[/td][td]
TRUE​
[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td][/td][td][/td][td][/td][td][/td][td] Selection 2a [/td][td]
TRUE​
[/td][td]
TRUE​
[/td][td]
FALSE​
[/td][td]
TRUE​
[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td][/td][td][/td][td][/td][td][/td][td] Selection 2b[/td][td]
TRUE​
[/td][td]
TRUE​
[/td][td]
TRUE​
[/td][td]
FALSE​
[/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet79[/td][/tr][/table]

Formula in cell C2:
=INDEX($F$2:$I$5,MATCH(B2,$E$2:$E$5,0),MATCH(A2,$F$1:$I$1,0))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
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