ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dropdown list with a condition (https://www.excelbanter.com/excel-discussion-misc-queries/168572-dropdown-list-condition.html)

bunt.[_2_]

Dropdown list with a condition
 
I've prepared a calculator that asks users a series of questions; some of
them being 'yes' or 'no' type. The answers for the y/n type are listed in a
drop down menu validated from two hidden cells. My problem is that only one
of those answers should be allowed as a 'Y' at any one time. Therefore, I
need to find a way to force the other list to either change to a 'No' or at
least prompt the user.

I've tried an if statement like this in attempt to force the cell to change
but it doesn't work.
=IF(AND(G30="Y",G31="Y"), G31="N")

Any help would be appreciated.

Gary Brown

Dropdown list with a condition
 
Assume:
The 2 hidden cells are Z1 and Z2.
Put 'N' in cell Z1.
Put the following formula in cell Z2.
=if(or(G30="Y",G31="Y"),"","Y")

--
HTH,
Gary Brown

If this post was helpful to you, please select
''''''''''''''''YES'''''''''''''''' at the bottom of the post.



"bunt." wrote:

I've prepared a calculator that asks users a series of questions; some of
them being 'yes' or 'no' type. The answers for the y/n type are listed in a
drop down menu validated from two hidden cells. My problem is that only one
of those answers should be allowed as a 'Y' at any one time. Therefore, I
need to find a way to force the other list to either change to a 'No' or at
least prompt the user.

I've tried an if statement like this in attempt to force the cell to change
but it doesn't work.
=IF(AND(G30="Y",G31="Y"), G31="N")

Any help would be appreciated.


bunt.[_2_]

Dropdown list with a condition
 
Thank you very much, this was exactly what I was looking for!


"Gary Brown" wrote:

Assume:
The 2 hidden cells are Z1 and Z2.
Put 'N' in cell Z1.
Put the following formula in cell Z2.
=if(or(G30="Y",G31="Y"),"","Y")

--
HTH,
Gary Brown

If this post was helpful to you, please select
''''''''''''''''YES'''''''''''''''' at the bottom of the post.



"bunt." wrote:

I've prepared a calculator that asks users a series of questions; some of
them being 'yes' or 'no' type. The answers for the y/n type are listed in a
drop down menu validated from two hidden cells. My problem is that only one
of those answers should be allowed as a 'Y' at any one time. Therefore, I
need to find a way to force the other list to either change to a 'No' or at
least prompt the user.

I've tried an if statement like this in attempt to force the cell to change
but it doesn't work.
=IF(AND(G30="Y",G31="Y"), G31="N")

Any help would be appreciated.



All times are GMT +1. The time now is 07:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com