查询和排除空单元格
Query and exclude empty cells
我正在尝试查询数据、格式化数据并排除空单元格。
=ARRAYFORMULA({"Date";IFERROR(QUERY({text(J2:J, "m/d/yyyy")}))})
目前正在使用这个。
尝试使用这个:
=ARRAYFORMULA({"Date";IFERROR(QUERY({text(J2:J, "m/d/yyyy"), "where J <>''"}))})
但是单元格没有填满。
不确定我错过了什么。
如果 J Column
中的数据是真实日期,那么您可以使用下面的 QUERY()
公式。
=QUERY(J2:J,"select J where J is not null label J 'Date' format J 'm/d/yyyy'")
Edit: If data is string formatted then could try-
=ArrayFormula(QUERY(DateValue(J2:J),"select Col1 where Col1 is not null label Col1 'Date' format Col1 'm/d/yyyy'"))
我正在尝试查询数据、格式化数据并排除空单元格。
=ARRAYFORMULA({"Date";IFERROR(QUERY({text(J2:J, "m/d/yyyy")}))})
目前正在使用这个。
尝试使用这个:
=ARRAYFORMULA({"Date";IFERROR(QUERY({text(J2:J, "m/d/yyyy"), "where J <>''"}))})
但是单元格没有填满。
不确定我错过了什么。
如果 J Column
中的数据是真实日期,那么您可以使用下面的 QUERY()
公式。
=QUERY(J2:J,"select J where J is not null label J 'Date' format J 'm/d/yyyy'")
Edit: If data is string formatted then could try-
=ArrayFormula(QUERY(DateValue(J2:J),"select Col1 where Col1 is not null label Col1 'Date' format Col1 'm/d/yyyy'"))