答案 0 :(得分:0)
={"Status"; ARRAYFORMULA(IF(ISBLANK(B2:B), ,
IF((MINUS(I2:I,J2:J)) < (0.1*I2:I), "Completed", IFERROR(VLOOKUP(B$2:B,
QUERY(IMPORTRANGE("1QNYU1Kb1rtx-n4tMRamHJuvYt_9kGMfhGZZs_opuJr0", "PRC!A$2:C"),
"where Col3 is not null", 0), 3, 0), IF(ISBLANK(IFERROR(VLOOKUP(B$2:B,
IMPORTRANGE("1QNYU1Kb1rtx-n4tMRamHJuvYt_9kGMfhGZZs_opuJr0", "PRC Detail!B$2:C"), 2, 0))),
"DRAFT", "On Production")))))}