我正在比较公寓,我有专栏,如卧室,全浴室,半浴室,租金,宠物友好,阳台,洗衣房,公用设施,停车场和公交车访问。其中一些有像浴室和租金的数字,而其他像宠物友好和公用事业有像“是”和“包括”这样的词。我找到了一些帮助分配价值,到目前为止我有:
=IF(AND(B2>=1, B2<= 1), 1,
IF(AND(B2>=2, B2<= 2), 2,
IF(AND(B2>=3, B2<= 3), 3,
IF(AND(B2>=4, B2<= 4), 4,
IF(AND(C2>=1, C2<= 1), 1,
IF(AND(C2>=2, C2<= 2), 2,
IF(AND(C2>=3, C2<= 3), 3,
IF(AND(C2>=4, C2<= 4), 4,
IF(AND(D2>=1, D2<= 1), 1,
IF(AND(D2>=2, D2<= 2), 2,
IF(AND(D2>=3, D2<= 3), 3,
IF(AND(D2>=4, D2<= 4), 4,
IF(AND(F2>=0, F2<= 1000), 3,
IF(AND(F2>=1001, F2<= 1500), 2,
IF(AND(F2>=1501, F2<= 2000), 3,
IF(AND(G2="Yes"),1,
IF(AND(G2="No"),0,(H2="Yes"),1,
IF(AND(H2="No"),0,
IF(AND(I2="Facility"),0,
IF(AND(I2="Private"),1,
IF(AND(J2="Included"),1,
IF(AND(J2="Not Included"),0,(K2="Yes"),1,
IF(AND(K2="No"),0,(L2="Yes"),1,
IF(AND(L2="No"),0,))))))))))))))))))))))))))
如何使用这些参数添加行以为每个公寓创建分数?
AND(X>=N,X<=N)
而不是简单X=N
?