if with 3 options

elynoy

Board Regular
Joined
Oct 29, 2018
Messages
160
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hello, I'm trying to use if statement with 3 options with data validation. I got it to work with 2 but cant seem to figure how it will work with 3 or even if it's possible.

the code I have is
Code:
=SE(B5="yes";list1;list2)

based on the word "yes" but I'd like to add another option to that IF. I'd like to use those 2 lists or some value on another cell alone, let's say B6.

for exemple:

Cell B5 has "yes" and the cell D4, with the data validation, depending on the word, allows me to choose one of those 2 lists.
Cell B9 has another value, it's not a list, just a simple value "400".
I want cell D4 to let me choose those 2 lists or the value in B9


If anyone has a better way to do this would be even better.

Best regards,
eLy
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Cell B5 has "yes" and the cell D4, with the data validation, depending on the word, allows me to choose one of those 2 lists.
eLy

Something like this:

=SE(B5="yes";SE(D5="word1";list1;SE(D5="word2";list2,"no word")),"no yes")
 
Upvote 0
Thank you DanteAmor, I ended up using double dependent drop down menu. Found one working exemple of what I needed and it worked.

best regards,
eLy
 
Upvote 0
Thank you DanteAmor, I ended up using double dependent drop down menu. Found one working exemple of what I needed and it worked.

best regards,
eLy

I like knowing that you have a solution. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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