为什么我的条件格式不能在Google表格中使用?简单的COUNTIFS

时间:2018-08-17 16:40:07

标签: google-sheets gs-conditional-formatting

在以下情况下,我正在尝试格式化D列中的所有单元格:

  • R =关闭
  • D =空白
  • 编辑:E不是“不在CR上”

这是我在Google表格中的自定义公式。不起作用D列中的所有单元格都突出显示

=COUNTIFS(R:R, "Closed", D:D, "")

将公式更改为: =COUNTIFS(R:R, "Closed", D:D, "", E:E, "<>NOT ON CR")


我也尝试过此操作,但不起作用。 D列中没有任何单元格突出显示

=COUNTIFS(R:R, "Closed", D:D, "<0")

将公式更改为: =COUNTIFS(R:R, "Closed", D:D, "<0", E:E, "<>NOT ON CR")

1 个答案:

答案 0 :(得分:1)

尝试一下:

val datasource37 = glueContext.getCatalogSource(database = "data", tableName = "term", redshiftTmpDir = "", transformationContext = "datasource37").getDynamicFrame()
val applymapping37 = datasource37.applyMapping(mappings = Seq(("id", "bigint", "id", "bigint"), ("name", "string", "name", "varchar(256)"), ("date", "timestamp", "date_start", "timestamp")), caseSensitive = false, transformationContext = "applymapping37")
val resolvechoice37 = applymapping37.resolveChoice(choiceOption = Some(ChoiceOption("make_cols")), transformationContext = "resolvechoice37")
val dropnullfields37 = resolvechoice37.dropNulls(transformationContext = "dropnullfields37")
val datasink37 = glueContext.getJDBCSink(catalogConnection = "dataConnection", options = JsonOptions("""{"dbtable": "term", "database": "data"}"""), redshiftTmpDir = args("TempDir"), transformationContext = "datasink37").writeDynamicFrame(dropnullfields37)

应用于D1:D