Easiest way to have a dropdown based on 2 conditions

FJPunisher

New Member
Joined
Mar 2, 2021
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
Hello Experts,

I am looking for help on below, I am sure this is possible but can’t find a most efficient way to do this.
  • I will capture ID as text in a cell, this can be A_100, A_200, A_300, A_400, A_500 or A_600, (DONE)
  • Based on that ID, I am using VB to paste the days that are associated with that ID, (DONE)
  • Now based on the ID & DAY i want to show a dropdown list with up to three options. (HELP!)
In short, what is the easiest way to have dropdown list based on 2 conditions…
e.g.
IF ID = A_100 & Day = D_SUN Then Dropdown = 5.50, 6.6, 4.5
 

Attachments

  • Screenshot 2021-03-22 203210.jpg
    Screenshot 2021-03-22 203210.jpg
    41.2 KB · Views: 5
Since you don't have FILTER, you could make these three cells (all array entry: CSE):

R3:
Code:
=INDEX($K$3:$K$38,MAX(ROW($3:$38)*($P$1&$Q$1=$G$3:$G$38&$I$3:$I$38))-(ROW())-1)
R4:
Code:
=INDEX($K$3:$K$38,MAX(ROW($3:$38)*($P$1&$Q$1=$G$3:$G$38&$I$3:$I$38))-(ROW())-1)
R5:
Code:
=INDEX($K$3:$K$38,MAX(ROW($3:$38)*($P$1&$Q$1=$G$3:$G$38&$I$3:$I$38))-(ROW())-2)
and the source for data validation: =R3:R5

I think that'll work.
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,419
Messages
6,119,389
Members
448,891
Latest member
tpierce

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