Excel: Specifying a Range for a Single-Value Argument

Last reviewed: November 30, 1994
Article ID: Q81272
The information in this article applies to:
  • Microsoft Excel for Windows, versions 2.x, 3.0, 4.0, 5.0
  • Microsoft Excel for the Macintosh, versions 2.2, 3.0, 4.0, 5.0

SUMMARY

Under certain circumstances, Excel's functions will accept a range as an argument where a single value or reference is expected.

If the function is entered as an array (COMMAND+RETURN on the Macintosh, CTRL+SHIFT+ENTER in Windows) the function chooses a value based on its relative position in the argument range.

If the function is not entered as an array, Excel uses the element of the range in the same row or column as the formula. This only works if a single column or a single row is used as the argument within a formula that expects a single value.

MORE INFORMATION

If Excel cannot accept the range, the result is #VALUE!. This occurs if the formula is entered in a row or column which is outside the boundaries of the argument range, or if the argument range is non-linear (not a single row or column).

For example, if =RIGHT($A$1:$A$5,5) is entered anywhere in the third row of a spreadsheet, it returns the five rightmost characters of $A$3. If the formula is entered outside the first five rows as a non-array formula, it will produce #VALUE!.

REFERENCES

"Microsoft Excel User's Guide," for the Macintosh, version 3.0, pages 271-275


KBCategory: kbusage
KBSubcategory:

Additional reference words: 5.00 2.1 2.10 2.2 2.20 3.0 3.00 4.0 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: November 30, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.