条件格式中的公式无效
Equation invalid in conditional formatting
我有一个公式在单元格中运行良好,但当我将其插入条件格式时被标记为无效;然而,方程式的逻辑正是我所需要的。公式如下:
=IF(REGEXMATCH(VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(DEALS!$G)-COLUMN(DEALS!$A)+1, 0), "Likes"), Q2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(DEALS!$F)-COLUMN(DEALS!$A)+1, 0), R2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(DEALS!$F)-COLUMN(DEALS!$A)+1, 0))
我必须更改什么才能使等式对条件格式有效?
感谢我能得到的任何帮助!
绿色:
=IF(REGEXMATCH(VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!G1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0), "Likes"),
NOT(Q2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)),
NOT(R2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)))
红色:
=IF(REGEXMATCH(VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!G1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0), "Likes"),
(Q2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)),
(R2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)))
我有一个公式在单元格中运行良好,但当我将其插入条件格式时被标记为无效;然而,方程式的逻辑正是我所需要的。公式如下:
=IF(REGEXMATCH(VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(DEALS!$G)-COLUMN(DEALS!$A)+1, 0), "Likes"), Q2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(DEALS!$F)-COLUMN(DEALS!$A)+1, 0), R2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(DEALS!$F)-COLUMN(DEALS!$A)+1, 0))
我必须更改什么才能使等式对条件格式有效?
感谢我能得到的任何帮助!
绿色:
=IF(REGEXMATCH(VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!G1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0), "Likes"),
NOT(Q2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)),
NOT(R2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)))
红色:
=IF(REGEXMATCH(VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!G1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0), "Likes"),
(Q2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)),
(R2>=VLOOKUP(H2, INDIRECT("DEALS_RNG"), COLUMN(INDIRECT("DEALS!F1"))-COLUMN(INDIRECT("DEALS!A1"))+1, 0)))