Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用microsoftexcel的应用条件_Excel - Fatal编程技术网

使用microsoftexcel的应用条件

使用microsoftexcel的应用条件,excel,Excel,我们可以在excel上应用条件吗 如果“修复”为真,我需要将“剩余问题”设置为0;如果“修复”为假,则需要将“剩余问题”设置为1 这可以通过一个If(这样的语句来实现: =IF(E2,0,1) 由于E2的内容是一个布尔值,只需像使用IF(E2,一样使用它即可。但如果它存储为文本,则使用以下公式: =IF(D1="FALSE",1,IF(D1="TRUE",0,"Error")) 在您的例子中,只需将下面的公式放到F2单元格中,即可将布尔值转换为数值 =--C2

我们可以在excel上应用条件吗

如果“修复”为真,我需要将“剩余问题”设置为0;如果“修复”为假,则需要将“剩余问题”设置为1


这可以通过一个
If(
这样的语句来实现:

=IF(E2,0,1)
由于E2的内容是一个布尔值,只需像使用
IF(E2,
一样使用它即可。但如果它存储为文本,则使用以下公式:

=IF(D1="FALSE",1,IF(D1="TRUE",0,"Error"))

在您的例子中,只需将下面的公式放到
F2
单元格中,即可将布尔值转换为数值

=--C2