Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default Validation on date

I need to have a validation between two date columns so if the date is
greater than 90 days, it can either stop the user or flag the user.Can this
be done?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default Validation on date

One day is 1 in Excel so you can use validationallowdate or allowcustom
where you refer to a fixed date in a cell like

=A190+$B$2

where A1 is the cell that you validate and B2 the date

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(remove ^^ from email)


"jk" wrote in message
...
I need to have a validation between two date columns so if the date is
greater than 90 days, it can either stop the user or flag the user.Can
this
be done?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default Validation on date

On the toolbar, go to Data | Validation while you are on the cell containing
date the User is entering (in my example, cell B1). Select "Custom". In the
Formula box type:

=IF(B1-A190,1=2,1=1)

Where B1 = the cell the user is data entering
Where A1 = the existing date

The formula is say if the date (in B1) is more than 90 days from the date
(in A1) then 1=2 (which is false and will give the user an error message).
If the date in B1 is less than the date in A1 then 1=1 (which is true & no
error message given to user). Play around with it to make it fit your
situation. Also, look at the other tabs, you can customize the error
message, etc.

See also:
http://www.contextures.com/xlDataVal01.html

Thx
MSweetG222



"jk" wrote:

I need to have a validation between two date columns so if the date is
greater than 90 days, it can either stop the user or flag the user.Can this
be done?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default Validation on date

I must be doing something wrong Could you explain if i used cell A8 AND B8 to
produce an error message if the date difference is greater than 90 days.This
is the formula to use???

"Peo Sjoblom" wrote:

One day is 1 in Excel so you can use validationallowdate or allowcustom
where you refer to a fixed date in a cell like

=A190+$B$2

where A1 is the cell that you validate and B2 the date

--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(remove ^^ from email)


"jk" wrote in message
...
I need to have a validation between two date columns so if the date is
greater than 90 days, it can either stop the user or flag the user.Can
this
be done?




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
How to return a value between date ranges Mary-Lou Excel Worksheet Functions 7 May 26th 06 10:00 PM
count between start date and end date flow23 Excel Discussion (Misc queries) 5 May 10th 06 01:22 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Date Validation - Must equal Sundays date jeridbohmann Excel Discussion (Misc queries) 14 November 30th 05 08:40 PM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM


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