不太确定我是否可以使用 if 函数来做到这一点?目前我正在使用以下公式:
=+IF(B7<100000,"CC",IF(B7<250000,"MV, MP, PM",IF(B7<500000,"FN",IF(B7<1000000,"KH",IF(B7>1000000,"DF",FALSE)))))
我想添加另一个标准 If cell A=1
thenC=+IF(B7<100000,"CC",IF(B7<250000,"MV, MP, PM",IF(B7<500000,"FN",IF(B7<1000000,"KH",IF(B7>1000000,"DF",FALSE)))))
如果A=2
那时C=+IF(B7<10000,"CC",IF(B7<50000,"CCL",IF(B7<500000,"FN",IF(B7<1000000,"KH",IF(B7>1000000,"DF",FALSE)))))
希望我足够清楚,感谢您的帮助
更新:刚刚发现,这比预期的要容易:)
=+If(A=1,IF(B7<100000,"CC",IF(B7<250000,"MV, MP, PM",IF(B7<500000,"FN",IF(B7<1000000,"KH",IF(B7>1000000,"DF",FALSE))))),IF(B7<10000,"CC",IF(B7<50000,"CCL",IF(B7<500000,"FN",IF(B7<1000000,"KH",IF(B7>1000000,"DF",FALSE)))))
好的,它只有在 A 为真或假时才有效,但这是我的情况
ps:我会尝试切换功能:)