Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default List valid values if a condition

To create dropdown lists in the cells, you can use data validation.
There are instructions he

http://www.contextures.com/xlDataVal01.html

In your workbook, type the list of colours in a column.
Name this list, e.g. ColourList
There are instructions here for naming ranges:
http://www.contextures.com/xlNames01.html

In another column, type: N/A
Name this cell, e.g. NAList

Select the cells in which you want the lists
Choose DataValidation
For Allow, choose List
In the Source box, type a formula that refers to the cell
with the number of shirts, e.g.:
=IF(C20,ColourList,NAList)
Click OK

Markswife3 wrote:
Hello,
Is there a way to list valid values to select only if a condition is met?
For example, if # of shirts 0, then allow user to select color (white,
black or red). If # of shirts = 0, then automaticallu populate color with N/A.
Thanks,



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
CountIf Condition based on lookup in a list of values Eric E Excel Worksheet Functions 6 April 22nd 23 12:12 AM
Formula to check against a list of valid values Barb W[_2_] Excel Worksheet Functions 3 March 4th 08 06:51 PM
Retain Conditional Format When Condition Is No Longer Valid Rob Excel Discussion (Misc queries) 6 December 20th 07 06:26 PM
How to valid the values? Eric Excel Worksheet Functions 10 August 26th 07 05:43 AM
How to valid the date with given condition? Eric Excel Discussion (Misc queries) 1 August 17th 07 04:33 AM


All times are GMT +1. The time now is 06:17 PM.

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

About Us

"It's about Microsoft Excel"