A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Two date validations



 
 
Thread Tools Display Modes
  #1  
Old May 12th, 2010, 12:32 AM posted to microsoft.public.excel.misc
Gabe
external usenet poster
 
Posts: 83
Default Two date validations

How do I create two validation rules for one cell containing a date?

1. The date (Cell A1) must be between a certain range (12/01/2009 and
12/31/2012).

2. The date must not be greater than Cell A2.

So far I got the first rule working, but I can't figure out how to do both.
Any advice would be greatly appricaiated.

Thanks,
~Gabe
  #2  
Old May 12th, 2010, 12:59 AM posted to microsoft.public.excel.misc
Dave Peterson[_2_]
external usenet poster
 
Posts: 69
Default Two date validations

I'd try:

Select A1
Data|Validation (xl2003 menus)
formula is:
=AND(ISNUMBER(A1),A1=DATE(2009,12,1),A1=DATE(201 2,12,31),A1=A2)



Gabe wrote:

How do I create two validation rules for one cell containing a date?

1. The date (Cell A1) must be between a certain range (12/01/2009 and
12/31/2012).

2. The date must not be greater than Cell A2.

So far I got the first rule working, but I can't figure out how to do both.
Any advice would be greatly appricaiated.

Thanks,
~Gabe


--

Dave Peterson
  #3  
Old May 12th, 2010, 01:13 AM posted to microsoft.public.excel.misc
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Two date validations

Data Validation Custon FormulaIs:

=AND(A140148,A141274,A1A2)
--
Gary''s Student - gsnu201002


"Gabe" wrote:

How do I create two validation rules for one cell containing a date?

1. The date (Cell A1) must be between a certain range (12/01/2009 and
12/31/2012).

2. The date must not be greater than Cell A2.

So far I got the first rule working, but I can't figure out how to do both.
Any advice would be greatly appricaiated.

Thanks,
~Gabe

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:56 AM.


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