A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If function help



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2010, 04:35 AM posted to microsoft.public.excel.worksheet.functions
Mezani
external usenet poster
 
Posts: 4
Default If function help

I have two cells that each have drop down lists. The first cell has the text
yes and no, If i choose yes i want the second cell to return N/A for example,
and if it is no I want the drop down list to be usable in the second cell.

Thanks for any help
  #2  
Old May 20th, 2010, 05:40 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default If function help

If you are looking for a non-VBA solution create two named ranges myListYes
and myListNo and use the below formula..This will not autopopulate the value
'n/a'.

=IF(A1="Yes",mylistYes,IF(A1="No",myListNo,""))

If you really need a VBA solution post back..


--
Jacob (MVP - Excel)


"Mezani" wrote:

I have two cells that each have drop down lists. The first cell has the text
yes and no, If i choose yes i want the second cell to return N/A for example,
and if it is no I want the drop down list to be usable in the second cell.

Thanks for any help

  #3  
Old May 20th, 2010, 07:55 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default If function help

Forgot to mention that this formula is to be used in 'Source' field of Data
Validation.

For example if you want the drop down in cell B1 based on cell A1; select
cell B1 and from menu DataValidationAllow 'List'

--
Jacob (MVP - Excel)


"Jacob Skaria" wrote:

If you are looking for a non-VBA solution create two named ranges myListYes
and myListNo and use the below formula..This will not autopopulate the value
'n/a'.

=IF(A1="Yes",mylistYes,IF(A1="No",myListNo,""))

If you really need a VBA solution post back..


--
Jacob (MVP - Excel)


"Mezani" wrote:

I have two cells that each have drop down lists. The first cell has the text
yes and no, If i choose yes i want the second cell to return N/A for example,
and if it is no I want the drop down list to be usable in the second cell.

Thanks for any help

  #4  
Old May 20th, 2010, 02:06 PM posted to microsoft.public.excel.worksheet.functions
Mezani
external usenet poster
 
Posts: 4
Default If function help


I don't understand how this formula needs to be in the source of the data
validation, that already has the name for the list. example, =yesno which is
what i named the two cells on another sheet.
"Jacob Skaria" wrote:

Forgot to mention that this formula is to be used in 'Source' field of Data
Validation.

For example if you want the drop down in cell B1 based on cell A1; select
cell B1 and from menu DataValidationAllow 'List'

--
Jacob (MVP - Excel)


"Jacob Skaria" wrote:

If you are looking for a non-VBA solution create two named ranges myListYes
and myListNo and use the below formula..This will not autopopulate the value
'n/a'.

=IF(A1="Yes",mylistYes,IF(A1="No",myListNo,""))

If you really need a VBA solution post back..


--
Jacob (MVP - Excel)


"Mezani" wrote:

I have two cells that each have drop down lists. The first cell has the text
yes and no, If i choose yes i want the second cell to return N/A for example,
and if it is no I want the drop down list to be usable in the second cell.

Thanks for any help

  #5  
Old May 20th, 2010, 04:30 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default If function help

Hi,
let' say yes or no will be entered in cell A2, so first you have to create
the list with yes and no and name it Answer, then create another list with
#N/A and name it Yes and another list with the selection you want if they
choose No and name this list No3
then in data validation for cell A1, choose list and as source enter


=Answer

in cell B2 as data validation enter list and as source enter

=indirect(A2)

"Mezani" wrote:


I don't understand how this formula needs to be in the source of the data
validation, that already has the name for the list. example, =yesno which is
what i named the two cells on another sheet.
"Jacob Skaria" wrote:

Forgot to mention that this formula is to be used in 'Source' field of Data
Validation.

For example if you want the drop down in cell B1 based on cell A1; select
cell B1 and from menu DataValidationAllow 'List'

--
Jacob (MVP - Excel)


"Jacob Skaria" wrote:

If you are looking for a non-VBA solution create two named ranges myListYes
and myListNo and use the below formula..This will not autopopulate the value
'n/a'.

=IF(A1="Yes",mylistYes,IF(A1="No",myListNo,""))

If you really need a VBA solution post back..


--
Jacob (MVP - Excel)


"Mezani" wrote:

I have two cells that each have drop down lists. The first cell has the text
yes and no, If i choose yes i want the second cell to return N/A for example,
and if it is no I want the drop down list to be usable in the second cell.

Thanks for any help

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.