Return a value based on three fields

kgagne

New Member
Joined
Feb 19, 2008
Messages
4
I have a table with three options. Reverse X, Y and Z.

Setting ValueReverse XReverse YReverse Z
0NoNoNo
1YesNoNo
2NoYesNo
3YesYesNo
4NoNoYes
5YesNoYes
6NoYesYes
7YesYesYes


In the spreadsheet I allow the user to select yes or no using a drop-down box.
Reverse XReverse YReverse Z
NoYesYes
Based on the values the user selects I want to report that in another cell. In this case the user selected No, Yes and Yes which in the table is 6. I know I can do this with a bunch of If formulas but is there an easier way it can be done with a lookup table? Thanks for any help you can offer. -Kevin

6Axis Direction
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi,

Would this work for you:

Book3.xlsx
ABCD
1Setting ValueReverse XReverse YReverse Z
20NoNoNo
31YesNoNo
42NoYesNo
53YesYesNo
64NoNoYes
75YesNoYes
86NoYesYes
97YesYesYes
10
11Reverse XReverse YReverse Z
12NoYesYes
13
14
156Axis Direction
Sheet1011
Cell Formulas
RangeFormula
A15A15=LOOKUP(2,1/FIND(A12&B12&C12,B2:B9&C2:C9&D2:D9),A2:A9)
 
Upvote 0
Solution
Assuming you have Version 365 - Maybe this

Book2
ABCD
1Setting ValueReverse XReverse YReverse Z
20NoNoNo
31YesNoNo
42NoYesNo
53YesYesNo
64NoNoYes
75YesNoYes
86NoYesYes
97YesYesYes
10
11Reverse XReverse YReverse Z
12NoYesYes
13
14Setting Value
156
Sheet1
Cell Formulas
RangeFormula
B15B15=FILTER($A$2:$A$9,($B$2:$B$9=$B$12)*($C$2:$C$9=$C$12)*($D$2:$D$9=$D$12),"")
 
Upvote 0
Hi,

Would this work for you:

Book3.xlsx
ABCD
1Setting ValueReverse XReverse YReverse Z
20NoNoNo
31YesNoNo
42NoYesNo
53YesYesNo
64NoNoYes
75YesNoYes
86NoYesYes
97YesYesYes
10
11Reverse XReverse YReverse Z
12NoYesYes
13
14
156Axis Direction
Sheet1011
Cell Formulas
RangeFormula
A15A15=LOOKUP(2,1/FIND(A12&B12&C12,B2:B9&C2:C9&D2:D9),A2:A9)
That worked great. Thanks so much.
 
Upvote 0
Assuming you have Version 365 - Maybe this

Book2
ABCD
1Setting ValueReverse XReverse YReverse Z
20NoNoNo
31YesNoNo
42NoYesNo
53YesYesNo
64NoNoYes
75YesNoYes
86NoYesYes
97YesYesYes
10
11Reverse XReverse YReverse Z
12NoYesYes
13
14Setting Value
156
Sheet1
Cell Formulas
RangeFormula
B15B15=FILTER($A$2:$A$9,($B$2:$B$9=$B$12)*($C$2:$C$9=$C$12)*($D$2:$D$9=$D$12),"")
That worked great. Thanks so much.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

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