LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default using the if statement with data validation

Near your other lists, create a list with the single item "None"
Name that list: None
There are instructions here for naming a range:
http://www.contextures.com/xlNames01.html

Then in the data validation for cell B1, choose Allow: List
In the Source box, type:
=IF(A1="None",None,DayList)
Substitute your list name for "DayList"

To prevent some problems, you may also want to change the validation in
cell A1.
In the data validation for cell A1, choose Allow: List
In the Source box, type:
=IF(B1="None",None,MonthList)
Substitute your list name for "MonthList"

This will force users to clear a "None" from B1 before they can choose a
different item in A1.

To automatically enter a "none" in B1, you could use programming


GreenMonster wrote:
I have two cells, we'll call them A1, and B1. Both cells are set up to be
drop down lists that all users to pick a pre-determined value of the cell.
I did this by putting the pre determined value in cells hidden from the user
and then highlighting the cell, choosing "Data" then choosing "Validation"
and then pointing to the hidden data cell range.

One of the values/choises in the drop down of cell A1 is "None". If the
user chooses "None" then there is no need for the user to pick from the drop
down list in cell B2. Cell B2 should automatically populate with "None" as
well.

Since cell B1 is set up as a data valadition, it won't allow me to put an
=if function for the "None" value of cell A1.

Any ideas?




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

 
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
Data Validation w/an If Statement Steve Excel Worksheet Functions 1 February 18th 09 05:00 PM
Data Validation w/If Statement Jeff Gross Excel Worksheet Functions 3 November 19th 07 11:52 PM
If statement with validation list Pete Excel Worksheet Functions 7 January 2nd 07 07:46 PM
How do I use a conditional (IF) statement in Data Validation? LindaB Excel Worksheet Functions 3 August 13th 05 12:51 AM
Data validation with the Select Case statement acw Excel Programming 0 July 15th 03 03:16 AM


All times are GMT +1. The time now is 06:45 AM.

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"