Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Data Validation with Blank Date


Hi,

I have the following formula in cell *CP2* that evaluates to blank
(""):

=IF(BU2+7<DATE(YEAR(DATE!E23),MONTH(B2)+1,0),BU2+7 ,IF(AND(BU2+7=DATE(YEAR(DATE!E23),MONTH(B2)+1,0),C N2<DATE(YEAR(DATE!E23),MONTH(B2)+1,0)),DATE(YEAR(D ATE!E23),MONTH(B2)+1,0),IF(AND(BU2+7DATE(YEAR(DAT E!E23),MONTH(B2)+1,0),CN2<DATE(YEAR(DATE!E23),MONT H(B2)+1,0)),DATE(YEAR(DATE!E23),MONTH(B2)+1,0),"") ))

BU2[/b] CONTAINS A FORMULA THAT EVALUATES TO *28-07-2006

DATE(YEAR(DATE!E23),MONTH(B2)+1,0)* EVALUATES TO *31-07-2006

B2* CONTAINS FORMULA THAT EVALUATES TO *JULY

CN2* CONTAINS FORMULA THAT EVALUATES TO *31-07-2006


When I set the [b]Validation citeria* to *Custom*, and entered the
following formula:

=OR(AND(CK5=DAY($CN$2),CK5<=DAY($CP$2)),AND(CK5=D AY($CN$2),$CP$2
=""))

I get the message "The formula currently evaluates to an error. Do you
which to continue?"

When I choose "Yes," it does not accept *31* in cell CK5, (but when I
delete the formula in cell CP2 - leaving the cell blank, it accepts 31
only)

I know that the problem is being caused by the blank ("") in cell CP2.
Any help in fixing that problem?

Thanks,
Gos-C


--
Gos-C


------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=566845

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Data Validation with Blank Date


I have been able to solve this one yet, so let me try to explain some
more.

Cell CN2 will contain the date of the last Monday of the month –
formatted as d. Cell CP2 will either contain the EOM date (if EOM
falls on Tuesday, Wednesday, Thursday or Friday) or blank (if EOM also
falls on the last Monday). For example:

For May 2006:
Cell CN2 will contain 29
Cell CP2 will contain 31
So with the data validation setting, only 29, 30 or 31 should be
allowed in cell CK5

For June 2006:
Cell CN2 will contain 26
Cell CP2 will contain 30
So with the data validation setting, only 26, 27, 28, 29 or 30 should
be allowed in cell CK5

For July 2006:
Cell CN2 will contain 31
Cell CP2 will be blank
So with the data validation setting, only 31 should be allowed in cell
CK5

Hope this helps

Gos-C


--
Gos-C


------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=566845

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Data Validation with Blank Date


I have posted more explanation. Can anyone help?

Thank you,
Gos-C


--
Gos-C


------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=566845

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
Imported Data creates blank cells that aren't really blank JackieD Excel Worksheet Functions 14 February 23rd 06 12:57 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Handling "Blank Entries" through Data Validation Jai Excel Discussion (Misc queries) 2 August 19th 05 04:21 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Data Validation Window? Ken Excel Discussion (Misc queries) 1 January 11th 05 10:48 PM


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