Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default custom data validation

I did post a similar question yesterday but it may have been too confusing
and I did not get an answer to suit my needs. I have decided to simplify my
question:
I have 3 columns (A, B and C), I need to add data validation to ensure dates
are entered with the following rules:
1. A2 cannot be greater than B2 or C2
2. B2 cannot be greater than C2 or less than A2
3. C2 cannot be less than A2 or B2
C2 can be an empty cell.
All dates must be = 01/01/2007
Thanks in advance.
Gareth
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default custom data validation

Maybe

=AND(IF(COLUMN(K2)COLUMN($K2),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2),TRUE),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2))

--
HTH

Bob

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

"Gareth" wrote in message
...
I did post a similar question yesterday but it may have been too confusing
and I did not get an answer to suit my needs. I have decided to simplify
my
question:
I have 3 columns (A, B and C), I need to add data validation to ensure
dates
are entered with the following rules:
1. A2 cannot be greater than B2 or C2
2. B2 cannot be greater than C2 or less than A2
3. C2 cannot be less than A2 or B2
C2 can be an empty cell.
All dates must be = 01/01/2007
Thanks in advance.
Gareth



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default custom data validation



"Bob Phillips" wrote:

Maybe

=AND(IF(COLUMN(K2)COLUMN($K2),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2),TRUE),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2))

--
HTH

Bob

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

"Gareth" wrote in message
...
I did post a similar question yesterday but it may have been too confusing
and I did not get an answer to suit my needs. I have decided to simplify
my
question:
I have 3 columns (A, B and C), I need to add data validation to ensure
dates
are entered with the following rules:
1. A2 cannot be greater than B2 or C2
2. B2 cannot be greater than C2 or less than A2
3. C2 cannot be less than A2 or B2
C2 can be an empty cell.
All dates must be = 01/01/2007
Thanks in advance.
Gareth




Bob
Many thanks for this, it appears to do what it is supposed to. Is there any
way to incorporate =01/01/2007 in it?
Gareth
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default custom data validation

=AND(K2=--"2007-01-01",IF(COLUMN(K2)COLUMN($K2),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2),TRUE),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2))


--
HTH

Bob

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

"Gareth" wrote in message
...


"Bob Phillips" wrote:

Maybe

=AND(IF(COLUMN(K2)COLUMN($K2),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2),TRUE),SUMPRODUCT(--((K2<=L2:$P2)+(L2:$P2="")))=COUNTA(L2:$P2)+COUNTBL ANK(L2:$P2))

--
HTH

Bob

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

"Gareth" wrote in message
...
I did post a similar question yesterday but it may have been too
confusing
and I did not get an answer to suit my needs. I have decided to
simplify
my
question:
I have 3 columns (A, B and C), I need to add data validation to ensure
dates
are entered with the following rules:
1. A2 cannot be greater than B2 or C2
2. B2 cannot be greater than C2 or less than A2
3. C2 cannot be less than A2 or B2
C2 can be an empty cell.
All dates must be = 01/01/2007
Thanks in advance.
Gareth




Bob
Many thanks for this, it appears to do what it is supposed to. Is there
any
way to incorporate =01/01/2007 in it?
Gareth



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
custom data validation Gareth[_2_] Excel Worksheet Functions 4 May 21st 08 06:48 PM
Custom Data Validation MuppetBaby Excel Discussion (Misc queries) 2 July 30th 07 07:06 AM
custom data validation Matt Excel Discussion (Misc queries) 1 February 3rd 07 10:27 PM
Custom Data Validation dread Excel Discussion (Misc queries) 2 July 20th 06 09:31 PM
Custom data validation Guy Normandeau Excel Discussion (Misc queries) 3 April 18th 06 04:12 PM


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