excel - 需要在excel中写下公式
问题描述
if answer=='No' and score>high_threshold:
final_score=3
elif answer=='No' and (score<high_threshold or score>low_threshold):
final_score=2
elif (answer=='No' and score<low_threshold) or (answer=='Yes' and score>high_threshold):
final_score=1
elif (answer=='Yes' and score<low_threshold)"
final_score=0
else:
final_score=0
我是 Excel 的新手,刚到这一步
=IF(AND(F2="No",L2>=high_threshold),"3",IF(L2<high_threshold,L2>low_threshold,"2"))
解决方案
推荐阅读
- git - Git:短暂返回几个提交,然后返回
- angular - 在 authService 中以角度 SSR(通用)获取服务器端 cookie 以获取登录信息
- azure - azure app services 应用设置如何在 .net core 中工作?
- sql - 将 1 个随机记录从一个表转移到另一个表
- r - R Markdown - 使用 Latex PDF 的内联图像的垂直文本对齐
- spring-security - 在 Spring Web 中实现 Spring Security 时出错
- google-chrome-devtools - 在 google-chome-devtools 的元素选项卡中禁用鼠标悬停时突出显示元素
- javascript - 我可以在不制作后端 api 的情况下对用户进行身份验证吗?
- authentication - CakePHP 4 手动登录用户
- linux - 检查数据应为两列格式,带逗号 | Unix |