Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
spence
 
Posts: n/a
Default data validation with EOMONTH function

I have the following columns:

C D E
StartDate EndDate ContractEndDate

Columns C and D are user-entered fields; Column E is locked.

In order to minizize data entry, I am using E0MONTH in cell D1 to
autopopulate the end date of the value entered into cell C1: =EOMONTH(C1,0)

Ninty-five percent of the time the value in column D will indeed be the last
day of the month of the date entered in column C. However, in some instances
the contract end date in column E is a mid-month date and in these instances
I want to prevent the value in column D from being later than the value in
column E. (In other words, if ContractEndDate is June 15th and StartDate is
June 1st, I want to prevent EndDate from autofilling June 30th; in these
instances I would like a stop warning reminding my users to overwrite the
formula in D1 and manually enter the correct EndDate.)

I put data validation in D1 requiring a value equal to or less than the
value in E1. The validation works if I manually enter a value in D1
(overwriting the formula) but is ignored when D1 is autopopulated based on
the value of C1. Is there a way I can get both end of month autopopulation
AND data validation? Work arounds are appreciated.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default data validation with EOMONTH function


Could you achieve this with just a formula in D1?

=if(EOMONTH(C1,0)<=E1,EOMONTH(C1,0),"ENTER DATE HERE")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=523967

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
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Case Sensitivity problem with data validation Upya Excel Worksheet Functions 3 October 7th 05 01:30 AM
Using INDIRECT function to specify source data donesquire Charts and Charting in Excel 2 May 27th 05 03:53 AM
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


All times are GMT +1. The time now is 08:44 AM.

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"