JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,691
- Office Version
- 365
- Platform
- Windows
In another thread, it was suggested to me to give Data Validation a try as a way of reducing the need to do such extensive data checking in the UDF. So I did a little studying. It looks like it will make my life easier, but, as if often the case with Microsoft products, it comes with some puzzling gotchas, too.
Here are the limitations and oddities that I encountered. Please let me know if I misunderstood something.
PS: I just discovered that checking the Circle Invalid Data option will circle data that is invalid, but was entered before the validation rule was applied.
Here are the limitations and oddities that I encountered. Please let me know if I misunderstood something.
- All of the numeric settings (Whole number, Decimal, Date, Time, & Text length) require a range to be specified. So there is no way to specify that it is “any integer”. I have to specify a range even if any integer is OK with me. Setting “not between” to “1” and “1” will cause an error for “1”, even though “1” is not between “1” and “1”.
- When a new validation setting is assigned, it will not check the existing cell contents, so as long as it is left alone, invalid data will remain in that cell. I consider this a bug.
- In a cell with a Text length validation rule, Excel will evaluate a formula and it will pass the validation test if the length of the result is within the specified range. The formula can be any length. I guess this is right, but it's weird (to me).
- The Date rule will allow date+time for any date in the range except the last one. I guess they are testing that it is <= the end date and not < the end date + 1. This is technically wrong as 11 pm on the last date is still the last date. I consider this a bug.
- The List option is handy, but, sadly, lacks an auto-fill capability. I have to type the complete selection, click on the dropdown, or press Alt+Down Arrow and scroll to the desired selection. I consider this a design bug and a fairly serious one.
PS: I just discovered that checking the Circle Invalid Data option will circle data that is invalid, but was entered before the validation rule was applied.
Last edited: