首页 \ 问答 \ “= + IF(...)”在Excel中做什么?(Does “=+IF(…)” do anything in Excel?)

“= + IF(...)”在Excel中做什么?(Does “=+IF(…)” do anything in Excel?)

我为客户自动化一个大的Excel电子表格,并且我在他们的公式中不断遇到一个奇怪的结构。 几乎所有的IF函数都有这样的公式:

=+IF(<cond1>,"text",IF(<cond2>,1,2))

请注意等号后面紧跟的+号。 起初我认为这是虚假的,但它确实被广泛使用(数百个地方)。 然后,我想可能是强制结果被Excel解释为数字,但大多数使用它的地方都是IF函数,它们返回大多数结果值的非数字文本。

有谁知道这是否实际上在Excel公式中做了什么?

(Excel 2007,如果这很重要)


I am automating a large Excel spreadsheet for a customer and I keep coming across a strange construct in their formulas. Virtually all of their IF functions have formulas that look like this:

=+IF(<cond1>,"text",IF(<cond2>,1,2))

Note the + at the beginning, immediately after the equals sign. At first I thought it was spurious, but it sure is used extensively (hundreds of places). Then I thought that maybe it was to force the result to be interpreted as a numeric by Excel, but most of the places that use it are IF functions that return non-numeric text for the majority of their result values.

Does anyone know if this actually does anything in Excel formulas?

(Excel 2007, if that matters)


原文:https://stackoverflow.com/questions/15485499
更新时间:2023-04-19 09:04

最满意答案

如果脚本在关闭之前产生任何类型的错误,连接可以保持打开状态。 使用定制的错误500页面检查脚本,并在文本文件中记录错误,您将看到是否出现这种情况。 无论如何,ldb文件并不危险,所以你可以创建一个脚本来每天删除它们一次。 这是使用MS Access工作Web应用程序的一个缺点。 尝试迁移到MSSQL,如果你可以或者迁移到MySQL,最后一个可以从.NET或传统的ASP中使用,ADO或ADO.NET没有问题与适当的驱动程序。


The connection can be left open if the scripts produces an error of any kind before to close it. Check the scripts with a customized error 500 page that logs in a text file the errors and you will see if this is the case. Anyway the ldb file is not dangerous so you can create a script to remove them once a day or so. This is one of the drawbacks about working web applications with MS Access. Try to migrate to MSSQL if you can or to MySQL, this last can be used from .NET or classic ASP with no problem with ADO or ADO.NET with the appropiate driver.

相关问答

更多

相关文章

更多

最新问答

更多
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • linux的常用命令干什么用的
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • Java中的不可变类(Immutable class in Java)
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • 绑定属性设置器未被调用(Bound Property Setter not getting Called)
  • linux ubuntu14.04版没有那个文件或目录
  • 如何使用JSF EL表达式在param中迭代变量(How to iterate over variable in param using JSF EL expression)
  • 是否有可能在WPF中的一个单独的进程中隔离一些控件?(Is it possible to isolate some controls in a separate process in WPF?)
  • 使用Python 2.7的MSI安装的默认安装目录是什么?(What is the default installation directory with an MSI install of Python 2.7?)
  • 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
  • ckeditor config.protectedSource不适用于editor.insertHtml上的html元素属性(ckeditor config.protectedSource dont work for html element attributes on editor.insertHtml)
  • linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
  • Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
  • 将CouchDB与AJAX一起使用是否安全?(Is it safe to use CouchDB with AJAX?)
  • 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
  • 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
  • Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
  • 无法在新线程中从FREContext调用getActivity()?(Can't call getActivity() from FREContext in a new thread?)
  • 在Alpine上升级到postgres96(/ usr / bin / pg_dump:没有这样的文件或目录)(Upgrade to postgres96 on Alpine (/usr/bin/pg_dump: No such file or directory))
  • 如何按部门显示报告(How to display a report by Department wise)
  • Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)
  • Javascript - 如何在不擦除输入的情况下更改标签的innerText(Javascript - how to change innerText of label while not wiping out the input)
  • WooCommerce / WordPress - 不显示具有特定标题的产品(WooCommerce/WordPress - Products with specific titles are not displayed)