Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.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
Excel formula 基于另一个单元格的值插入一个单元格值_Excel Formula - Fatal编程技术网

Excel formula 基于另一个单元格的值插入一个单元格值

Excel formula 基于另一个单元格的值插入一个单元格值,excel-formula,Excel Formula,我正在尝试根据使用引用下拉列表的另一个单元格的值在一个单元格中插入货币值。使用IF函数时,语法似乎不正确 以下是我尝试过的: =IF(B5=New Course), 25000 B5单元格有几个基于下拉参考列表的选项我试图将25000的值插入单元格C5函数IF()的工作原理如下: =IF("Condition to check", "Result if the check is TRUE", "Result if the check is FALSE") 公式中的任何字符串都必须位于引号(“

我正在尝试根据使用引用下拉列表的另一个单元格的值在一个单元格中插入货币值。使用IF函数时,语法似乎不正确

以下是我尝试过的:

=IF(B5=New Course), 25000
B5单元格有几个基于下拉参考列表的选项我试图将25000的值插入单元格C5

函数IF()的工作原理如下:

=IF("Condition to check", "Result if the check is TRUE", "Result if the check is FALSE")
公式中的任何字符串都必须位于引号(“)之间。因此,在您的情况下,公式应为:

=IF(B5="New Course",25000,"")
如果B5等于字符串New Course,则公式将提供结果25000,否则将返回空字符串

您可以找到有关此函数的更多信息。

函数IF()的工作原理如下:

=IF("Condition to check", "Result if the check is TRUE", "Result if the check is FALSE")
公式中的任何字符串都必须位于引号(“)之间。因此,在您的情况下,公式为:

=IF(B5="New Course",25000,"")
如果B5等于字符串New Course,则公式将提供结果25000,否则将返回空字符串

您可以找到有关此的更多信息

尝试
=IF(B5=“新课程”,25000,”)
尝试
=IF(B5=“新课程”,25000,”)