PC Review


Reply
Thread Tools Rate Thread

Basic data validation question

 
 
Bingo Accent
Guest
Posts: n/a
 
      7th Mar 2007
I can't believe that I can't figure this out for myself, but...

I want to use Data Validation to only allow entry to a cell, if the
content of another cell is a specific text.

i.e. Cell E5 has a status of 'Open' or 'Closed' (data entry
validated). Cell F5 shows 'Date Closed'.

I want to prevent someone entering a date in the 'Date Closed' cell,
if E5 shows 'Open'.

I've tried using Data Validation>Custom and entering variations on
=IF(E5="Closed"), but I'm getting nowhere.

Please help!

Thanks.

 
Reply With Quote
 
 
 
 
ed@HelpExcel.com
Guest
Posts: n/a
 
      7th Mar 2007
You could use some VBA to accomplish this.

Regards,
Eddie
http://www.HelpExcel.com


 
Reply With Quote
 
KC Rippstein
Guest
Posts: n/a
 
      7th Mar 2007
The easiest way to accomplish this is to follow Debra Dalgleish's
instructions here:
http://www.contextures.com/xlDataVal02.html
She has some links at the top of that page to other ways of doing it, but
the one presented on that page is the cleanest.
-KC

"Bingo Accent" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I can't believe that I can't figure this out for myself, but...
>
> I want to use Data Validation to only allow entry to a cell, if the
> content of another cell is a specific text.
>
> i.e. Cell E5 has a status of 'Open' or 'Closed' (data entry
> validated). Cell F5 shows 'Date Closed'.
>
> I want to prevent someone entering a date in the 'Date Closed' cell,
> if E5 shows 'Open'.
>
> I've tried using Data Validation>Custom and entering variations on
> =IF(E5="Closed"), but I'm getting nowhere.
>
> Please help!
>
> Thanks.
>



 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      7th Mar 2007
This seems to work if "Date Closed" is entered in E5 while F5 is either
blank or contains "closed":

Click in E5, and <Data> <Validation> <Custom>, and enter:
=AND(E5="Closed",F5>0)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Bingo Accent" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I can't believe that I can't figure this out for myself, but...
>
> I want to use Data Validation to only allow entry to a cell, if the
> content of another cell is a specific text.
>
> i.e. Cell E5 has a status of 'Open' or 'Closed' (data entry
> validated). Cell F5 shows 'Date Closed'.
>
> I want to prevent someone entering a date in the 'Date Closed' cell,
> if E5 shows 'Open'.
>
> I've tried using Data Validation>Custom and entering variations on
> =IF(E5="Closed"), but I'm getting nowhere.
>
> Please help!
>
> Thanks.
>


 
Reply With Quote
 
Bingo Accent
Guest
Posts: n/a
 
      8th Mar 2007
I knew it was easy!

A colleague came up with =E5="Closed" and it works.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation Question dgraham Microsoft Excel Misc 6 28th Apr 2006 01:03 PM
Data Validation Question Joe Microsoft Excel Programming 5 13th Apr 2006 07:03 PM
Another Data Validation question =?Utf-8?B?TmlnZWw=?= Microsoft Excel Misc 3 14th Oct 2005 10:37 PM
data validation question yongyong Microsoft Excel Misc 2 26th Apr 2004 03:53 PM
Basic data processing question =?Utf-8?B?RGFubnkgQS4=?= Microsoft VB .NET 2 13th Apr 2004 10:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.