Microsoft KB Archive/25486: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 18: Line 18:
== SUMMARY ==
== SUMMARY ==


When the "value_if_false" argument is omitted from the IF() command and the "logical_test" argument returns FALSE, the word "FALSE" is displayed in the cell containing the formula.
When the "value_if_false" argument is omitted from the IF() command and the "logical_test" argument returns FALSE, the word "FALSE" is displayed in the cell containing the formula.


To display a blank cell when the "logical_test" argument returns FALSE, enter two quotation marks (without a space between them) in place of the optional "value_if_false" argument, as shown below:
To display a blank cell when the "logical_test" argument returns FALSE, enter two quotation marks (without a space between them) in place of the optional "value_if_false" argument, as shown below:


<pre>  =IF(logical_test,value_if_true,&quot;&quot;)
<pre>  =IF(logical_test,value_if_true,"")
</pre>
</pre>
For more information on the IF() command, see pages 227-228 in the &quot;Microsoft Excel Function Reference,&quot; version 4.0. If you are using version 3.0, see pages 125-126 (form 1) in the &quot;Microsoft Excel Function Reference&quot; version 3.0. If you are using Excel 2.20, see pages 43-44 in the &quot;Microsoft Excel Functions and Macros&quot; version 2.2.
For more information on the IF() command, see pages 227-228 in the "Microsoft Excel Function Reference," version 4.0. If you are using version 3.0, see pages 125-126 (form 1) in the "Microsoft Excel Function Reference" version 3.0. If you are using Excel 2.20, see pages 43-44 in the "Microsoft Excel Functions and Macros" version 2.2.
|}
|}


Line 38: Line 38:
<br />
<br />
<br />
<br />
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
</blockquote>
</blockquote>
|}
|}

Latest revision as of 13:52, 21 July 2020



Excel: Returning a Blank Cell When IF Command Returns FALSE

Last reviewed: December 1, 1994
Article ID: Q25486



1.x 2.20 3.00 4.00 MACINTOSH kbusage

SUMMARY

When the "value_if_false" argument is omitted from the IF() command and the "logical_test" argument returns FALSE, the word "FALSE" is displayed in the cell containing the formula.

To display a blank cell when the "logical_test" argument returns FALSE, enter two quotation marks (without a space between them) in place of the optional "value_if_false" argument, as shown below:

   =IF(logical_test,value_if_true,"")

For more information on the IF() command, see pages 227-228 in the "Microsoft Excel Function Reference," version 4.0. If you are using version 3.0, see pages 125-126 (form 1) in the "Microsoft Excel Function Reference" version 3.0. If you are using Excel 2.20, see pages 43-44 in the "Microsoft Excel Functions and Macros" version 2.2.



KBCategory: kbusage

KBSubcategory:

Additional words: 4.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 1, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.