Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Data validation dependent on value in another cell.

I would like to limit the input into a cell (y or n), based on the value in
the cell above it, (also y or n). So if one cell contains "y", then the user
cannot input "y" into the other cell. I'm familiar with data validation,
just not sure of the proper syntax to use.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Data validation dependent on value in another cell.

Assuming the cells are F1 and F2, and you are setting up F2, use DV with a
Custom type and a formula of

=AND(OR(F2="Y",F2="N"),F2<F1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Gubawatts" wrote in message
...
I would like to limit the input into a cell (y or n), based on the value in
the cell above it, (also y or n). So if one cell contains "y", then the
user
cannot input "y" into the other cell. I'm familiar with data validation,
just not sure of the proper syntax to use.

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Data validation dependent on value in another cell.

Thanks Bob.

"Bob Phillips" wrote:

Assuming the cells are F1 and F2, and you are setting up F2, use DV with a
Custom type and a formula of

=AND(OR(F2="Y",F2="N"),F2<F1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Gubawatts" wrote in message
...
I would like to limit the input into a cell (y or n), based on the value in
the cell above it, (also y or n). So if one cell contains "y", then the
user
cannot input "y" into the other cell. I'm familiar with data validation,
just not sure of the proper syntax to use.

Thanks.




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
how blank data validation cell after changing dependent cell? Ian Elliott Excel Discussion (Misc queries) 5 August 16th 09 02:42 AM
Dependent Data Validation Shacks Excel Discussion (Misc queries) 3 August 12th 09 06:58 PM
Data Validation list dependent on contents of another cell Scorer150 Excel Discussion (Misc queries) 2 February 7th 08 12:13 AM
dependent lists on data validation Chris Excel Discussion (Misc queries) 3 November 8th 07 12:03 AM
Dependent List- Data Validation Annie Excel Worksheet Functions 2 September 23rd 05 03:40 PM


All times are GMT +1. The time now is 11:57 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"