“= + 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 areIF
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
最满意答案
如果脚本在关闭之前产生任何类型的错误,连接可以保持打开状态。 使用定制的错误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.
相关问答
更多-
电脑二级考试 是考access 还是VPF[2022-06-08]
access -
CMD.EXE通常不能很好地播放NUL字节。 但是有几个外部命令可以处理NUL字节。 您还必须担心“线路”的长度。 CMD.EXE不喜欢长度超过8191字节的行。 我认为你最好的选择是更多,因为它将NUL转换为新的行。 以下内容应回显您的计算机名称。 @echo off setlocal set "file=database.ldb" set "compNameLine=1" for /f %%A in ('more "%file%"') do ( if defined compNameLine ( ...
-
您可以从InputStream中放入任意文件: put(InputStream src, String dst) 。 您可以使用以下内容上传空文件: put( new ByteArrayInputStream( "".getBytes() ), "tempfile"); You can put an arbitrary file from an InputStream: put(InputStream src, String dst). You can upload an empty file with ...
-
如果脚本在关闭之前产生任何类型的错误,连接可以保持打开状态。 使用定制的错误500页面检查脚本,并在文本文件中记录错误,您将看到是否出现这种情况。 无论如何,ldb文件并不危险,所以你可以创建一个脚本来每天删除它们一次。 这是使用MS Access工作Web应用程序的一个缺点。 尝试迁移到MSSQL,如果你可以或者迁移到MySQL,最后一个可以从.NET或传统的ASP中使用,ADO或ADO.NET没有问题与适当的驱动程序。 The connection can be left open if the scr ...
-
即使可以,也不应该覆盖库文件,因为这样会使主应用程序未编译。 即使您关闭了主应用程序,然后覆盖了库文件,它也会。 这是库文件的限制之一。 唯一可靠的方法是将它们分配为一对:使用其库文件编译的主应用程序。 Even if you could, you shouldn't overwrite the library file as that would leave the main application uncompiled. And it also will, even if you close the m ...
-
使用DotNetZip,您可以将zip文件直接保存到Response.OutputStream中。 不需要临时的Zip文件。 Response.Clear(); // no buffering - allows large zip files to download as they are zipped Response.BufferOutput = false; String ReadmeText= "Dynamic content for a readme file... ...
-
使用OleDbConnection(System.Data.OleDb)和正确的连接字符串。 Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\ mydatabase.mdb; User Id = admin; Password =; Use OleDbConnection (System.Data.OleDb) and the right connection string. Provider=Microsoft.Jet.OLEDB.4.0;Data ...
-
我的建议:继续使用应用程序路径。 在您的启动代码中,删除所有临时文件,例如 Kill CurrentProject.Path & "\temp_*.mdb" 因此,下次运行应用程序时会删除任何恶意文件。 My suggestion: keep using the application path. And in your startup code, delete all temp files, e.g. Kill CurrentProject.Path & "\temp_*.mdb" So any ro ...
-
它是libdb-devel 。 运行sudo dnf install libdb-devel应该可以完成这项工作。 如果没有,请确保/usr/lib/libdb.so在您的系统上就位。 使用libdb-cxx-devel也可以完成这项工作。 It is libdb-devel. Running sudo dnf install libdb-devel should do the job. If not, make sure that the /usr/lib/libdb.so is in place on ...
-
根据评论 - 没有什么是你错过的。 不应该通过用户代码进行取消链接,这样的事情可能是不允许的,并且可能由于各种原因而失败。 As per comments - there's nothing you've missed. Unlinking shouldn't be done by the user-code, such things might not be permitted and can fail due to various reasons.