Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Using IF statements with a drop-down list

Is it at all possible to use an if statement that when TRUE will display a
drop-down list in the given cell? For example: IF cell A1=100 I want to
display a drop-down list otherwise(if false) nothing.
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Using IF statements with a drop-down list

  1. Create the drop-down list: First, create the drop-down list that you want to display in the cell. To do this, select the cell where you want to display the drop-down list, go to the Data tab in the ribbon, and click on Data Validation. In the Data Validation dialog box, select List from the Allow drop-down list, and enter the values for your list in the Source box. Click OK to create the drop-down list.
  2. Write the IF statement: Next, write the IF statement that will determine whether to display the drop-down list or not. In this example, we want to display the drop-down list if cell A1 equals 100. So, in the cell where you want to display the drop-down list, enter the following formula:

    Formula:
    =IF(A1=100,INDIRECT("B1"),""
    In this formula, "B1" is the cell where you created the drop-down list. The INDIRECT function is used to reference the cell containing the drop-down list. If cell A1 equals 100, the formula will display the drop-down list in the cell. If not, the cell will be blank.
  3. Test the formula: Finally, test the formula by changing the value in cell A1 to see if the drop-down list appears or disappears based on the condition.

That's it! You can now use an IF statement to display a drop-down list in a cell based on a condition.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Using IF statements with a drop-down list

I think what you are looking for is Dependent lists

http://www.contextures.com/xlDataVal02.html
--
HTH,
Barb Reinhardt



"Steve Jamison" wrote:

Is it at all possible to use an if statement that when TRUE will display a
drop-down list in the given cell? For example: IF cell A1=100 I want to
display a drop-down list otherwise(if false) nothing.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Using IF statements with a drop-down list

Right on point. Thank you very much. :)

"Barb Reinhardt" wrote:

I think what you are looking for is Dependent lists

http://www.contextures.com/xlDataVal02.html
--
HTH,
Barb Reinhardt



"Steve Jamison" wrote:

Is it at all possible to use an if statement that when TRUE will display a
drop-down list in the given cell? For example: IF cell A1=100 I want to
display a drop-down list otherwise(if false) nothing.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down list dependant on previous drop down list Tenacioushail Excel Discussion (Misc queries) 1 July 1st 08 11:35 AM
referencing drop down menu values in IF-then statements? Powder Coating Mike Excel Discussion (Misc queries) 4 May 7th 08 02:51 AM
Drop TB into Financial Statements formula? Ang Excel Worksheet Functions 2 January 14th 07 10:33 PM
Drop Down List choice selecting another drop down list CVD0722 Excel Worksheet Functions 3 October 31st 06 01:02 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 12:27 PM.

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

About Us

"It's about Microsoft Excel"