楼主的表格里的要求逻辑混乱,搞了半天才终于理清了些思路.实在绕得头疼.晕死.
B13=IF(AND(B3>=60,B4:B11<30),"是平和质",IF(AND(B3>=60,B4:B11<40,OR(AND(B4>=30,B4<=40),AND(B5>=30,B5<=40),AND(B6>=30,B6<=40),AND(B7>=30,B7<=40),AND(B8>=30,B8<=40),AND(B9>=30,B9<=40),AND(B10>=30,B10<=40),AND(B11>=30,B11<=40))),"基本是平和质,有"&VLOOKUP(MAX(B4:B11),IF({1,0},B4:B11,A4:A11),2,)&"倾向",(IF(AND(B3>=60,OR(B4>=40,B5>=40,B6>=40,B7>=40,B8>=40,B9>=40,B10>=40,B11>=40)),"是"&VLOOKUP(MAX(B4:B11),IF({1,0},B4:B11,A4:A11),2,),(IF(AND(B3>=60,B4:B11<40),"基本是平和质",(IF(NOT(OR(AND(B3>=60,B4:B11<30),AND(B3>=60,B4:B11<40))),"否平和质","否偏颇体质"))))))))
数组公式结束,搞得头都大了,逻辑关系的高低有变化楼主自行调整吧. |