excel - excel conditional formatting validate date
问题描述
I try to evaluate if a cell contains a valid date. If the content is not a valid date, the cell should be colored red. I want to do this without vb. On SO i got told, this is possible using only conditional formatting
Here is my try:
This doesn't work. I think the formular is fine, because i get no error message, but still no success.
Another try was to use Highlight Cells Rules and depending on a date occurring.
But here i can only use specific rules, like date is from this week, or this month, or past week. I can not say is a valid date or is a date between X and Y.
Any ideas how i can achieve my goal to set background-color of cells with invalid date-formats?
解决方案
问题在于 31.12.1899 不是 Excel 中的重新调整日期。
Excel 日期是一个数字,它以 0 = 开头00.01.1900
所以如果你31.12..1899
用01.01.1900
你的公式交换你的就行了。
推荐阅读
- elixir - 如何根据属性组织结构列表
- java - PHP脚本在android中没有得到正确的值
- reactjs - TypeScript 2.8:在一次编译中执行和响应
- java - 我在这个条件语句中找不到逻辑错误。我不完全知道我的逻辑在哪里不正确
- php - display('string:'.$template_string) 不起作用
- android - 如何在不裁剪的情况下实现智能缩放的图像拼贴视图,如 Google Keep
- matlab - 如何返回包含给定数字的位置索引的行向量
- xml - 添加嵌套的 XML 元素
- css - Change the values of CSS variables at runtime in Typescript
- file - 通过网页从个人计算机共享文件(具有授权访问权限)