What if statement

fishcakes

New Member
Joined
Jun 20, 2016
Messages
23
Office Version
  1. 365
Platform
  1. Windows
I want to achieve the following. If "Y" is selected in B3, then the drop down validation in B5 will become the list under Y. If "N" is selected in B3, then the drop down validation or only selection will be "N/A" in B5

1708621126953.png
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Here is one way . I know there is a way just using the defined name manager, but I could not get it to work:


Book1
ABCDEFGHIJK
1
2
3Yes<<< Data Validation Y/N
4
5<<<Dependent Data ValidationYNDependentList
6 
7AppleN/AApple
8OrangeOrange
9PearPear
10GrapesGrapes
11
12
Sheet6
Cell Formulas
RangeFormula
J6:J10J6=LET(L,IFS($B$3="Yes",Y,$B$3="No",N,1,""),UNIQUE(IF(L="","",L),FALSE,FALSE))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
N=Sheet6!$I$6:$I$10J6
Y=Sheet6!$H$6:$H$10J6
Cells with Data Validation
CellAllowCriteria
B3ListYes,No
B5List=DependentList



1708622120835.png
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,331
Members
452,636
Latest member
laura12345

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