Data validation with date function fails

Jazz Engineer

New Member
Joined
Feb 1, 2022
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I have a column that is supposed to have dates entered, and is formatted for short date. The condition is: any date entered must have occurred in this year or a later year. I have entered the XL2BB code below and a screen shot afterwards. The problem is that dates in previous years are accepted without any error messages.

e04Marathons_CarmeliSteve.xlsm
A
53/4/2020
Expenses
Cells with Data Validation
CellAllowCriteria
A5Date>=YEAR(TODAY())
B5List=Marathon_Name
A6:A40Date<TODAY()
B6:B12ListMarathons
B13:B40List=Marathons


1663203015600.png


Thanks for your help,

Steve
 
rlv01

That's not a bad solution, but it's not perfect. Suppose I want to convert my workbook to a template? This would enable users to enter event data from 2022 in 2023.

If you are looking for something to reset the earliest valid date to the first day of the current year, then something like this.

1663636110608.png


Coincidentally, it is also an example of using nested formulas.
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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