导读 =IF(SUMIF(B4:B10,"一班",G4:G10)>SUMIF(B4:B10,"二班",G4:G10),"一班总分高,合计分值为: "&SUMIF(B4:B10,"一班",G4:G10),IF(SUMIF(B4:B10,"一班",G4:G10)
=IF(SUMIF(B4:B10,"一班",G4:G10)>SUMIF(B4:B10,"二班",G4:G10),"一班总分高,合计分值为: "&SUMIF(B4:B10,"一班",G4:G10),IF(SUMIF(B4:B10,"一班",G4:G10) and函数是检验各参数的逻辑值是否为TRUE,如果全是才返回TRUE,只要有一个值为FALSE,则返回FALSE。 所以and函数计算的结果只能为逻辑值。