Easiest way for 300+ outcomes from two conditions

Jbone697

New Member
Joined
Jun 7, 2018
Messages
15
I have two drop-down list boxes with multiple options to choose from in each box. Doing the math, there will end up being 300+ outcomes in the destination cell. I thought about doing IF AND statements and I'm pretty sure excel won't allow for that to happen. I have tables with all of the possible outcomes, and I'm wondering if there's a way I can make this happen.


To elaborate, this is for work. We have multiple (14) shifts, with multiple (22) starting lunch times. I want to select a shift and a start lunch time so in the destination cell, it displays the appropriate starting shift time.
 

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
A​
B​
C​
D​
1​
ShiftCol
LunchCol
StartCol
2​
3​
4​
Day
11:00​
7:00​
5​
Day
12:00​
8:00​
6​
7​
8​
ThisShift
ThisLunch
ThisStart
9​
Day
12:00​
8:00​
C9: {=INDEX(StartCol, MATCH(1, (ShiftCol=ThisShift) * (LunchCol=ThisLunch), 0))}
 
Upvote 0
Thank you for your help! Unfortunately, it gives me a #Value! error in C9 for me and I can't figure out why.
 
Last edited:
Upvote 0
The formula MUST be confirmed with Ctrl+Shift+Enter instead of just Enter. That's what makes the curly braces appear.
 
Upvote 0
You're welcome.

If yiou change the formula to this ...

=INDEX(StartCol, MATCH(1, INDEX((ShiftCol=ThisShift) * (LunchCol=ThisLunch), 0), 0))

... it can be confirmed with just Enter.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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