简体   繁体   English

如果日期格式不正确或空白,如何突出显示单元格?

[英]How to highlight cell if date format is incorrect or blank?

I have an excel sheet with over 5000+ records.我有一个包含超过 5000 条记录的 Excel 表格。

I am trying to set the date column into correct format (dd/mm/yy)我正在尝试将日期列设置为正确的格式 (dd/mm/yy)

Instead of visually looking at data to spot errors such as:而不是直观地查看数据以发现错误,例如:

  • Blanks空白
  • Date inputted like this: 27//01/20 < notice the double //像这样输入的日期: 27//01/20 < 注意双数//
  • Or something like this: 27/01/20.. < notice the full stops或者像这样: 27/01/20.. <注意27/01/20..

Is there an easier way of finding errors in date column?有没有更简单的方法来查找日期列中的错误?

Here is a sample of my column A:这是我的 A 列的示例:

在此处输入图片说明

1st and 4th row should be marked in red, because it is not correct format.第 1 行和第 4 行应标记为红色,因为格式不正确。

Reason I want to achieve is this is because I am needing to import it into MySQL with correct column types.我想要实现的原因是因为我需要使用正确的列类型将其导入 MySQL。 Not all to be varchar.并非全部都是 varchar。

Use conditional formatting - choose rule type 'Use formula...', enter formula =NOT(ISNUMBER($A10)) for appropriate range and get red cells.使用条件格式 - 选择规则类型“使用公式...”,为适当的范围输入公式=NOT(ISNUMBER($A10))并获取红色单元格。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM