使用python中的xlsxwriter编写公式
我有此陈述
worksheet.write_formula(j + 3, 5, f'=IF({xl_rowcol_to_cell(j + 3,4)}>=90,, " Exce")')
我想在Excel中写一个公式,以比较单元格的值(J + 3,5),如果其值
- 90写出色的
- 80 Write v。good
- 70写得好
,即检查的单元格值
I have this statement
worksheet.write_formula(j + 3, 5, f'=IF({xl_rowcol_to_cell(j + 3,4)}>=90,, " Exce")')
I want to write a formula in excel to compare the value of cell(j + 3, 5) if its value
- 90 write Excellent
- 80 write v. good
- 70 write good
i.e. examined cell value
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要的是嵌套IF,例如:
请记住:
根据文档: https://xlsxwriter.readthedocs.io/workthedocs.io/working_with_with_with_with_with_with_with_with_with_with_with_with_html
What you need are nested IFs, like:
Bear in mind that:
As per the documentation: https://xlsxwriter.readthedocs.io/working_with_formulas.html