validation is not working

faizee

Board Regular
Joined
Jan 28, 2009
Messages
214
Office Version
  1. 2016
Platform
  1. Windows
i have this formula in my date column validation

=AND(W3>STARTDATE,W3<ENDDATE)

i defiend STARTDATE as my first date, and ENDDATE is last date..

but in validation, is not working...?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi, what do you want to do isn't so clear. But as I understand you may use Allow:Date/Data:between/Start date: /End date:
 
Upvote 0
yes, you are right,
=AND(W4>STARTDATE,W4<ENDDATE)

where i defined startdate as 1jan12 and defined enddate as 31dec12
so i put this formula =AND(W4>STARTDATE,W4<ENDDATE) in validation custom,
then it should not allow any date before 1jan12 or les than 31dec12.


but its not working..
 
Upvote 0
Hi again,
(an example activate H3 and use this formula in validation (Custom))
D1=startdate
D3=enddate
should work fine,
Code:
=AND(H3>=D1,H3<=D3)
 
Upvote 0
why 'define name' does work in validation,
like if define D1 as startdate and D2 as endddate, it wont work..

why is that so?
 
Upvote 0
Can you post the contents of the "Refers To" box for the 2 named ranges ?
and what do these formulas return
=ISNUMBER(Startdate)
=ISNUMBER(Enddate)

Also, back to the first question, why are you using a custom formula for the validation?
Why not just Select DATE from the dropdown box, and enter the dates there?
 
Upvote 0
yes. 100%
but its not working,,
Hi,
make sure that your defined names are correct (you may use defined names by pressing "F3")
Also, have you checked my previously posted an examlpe in order from A to Z that posted today at (Today, 10:05 AM)?
(this works fine)
 
Upvote 0

Forum statistics

Threads
1,215,236
Messages
6,123,799
Members
449,127
Latest member
Cyko

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top