Excel: Direction of Values in Array Functions

Last reviewed: November 29, 1994
Article ID: Q29773
The information in this article applies to:
  • Microsoft Excel for the Macintosh, versions 1.x, 2.x, 3.0, 4.0

SUMMARY

In Microsoft Excel, array results from function macros or worksheet functions that return arrays will have a specific direction.

This direction is determined by the use of commas or semicolons as delimiters in the list of values. Values within a row of an array are separated by commas; rows of an array are separated by semicolons.

The LINEST and LOGEST worksheet functions return direction-specific arrays. The returned arrays are horizontal, which means that they use commas as separators. To use either of these functions, select a range of cells that is one-row-by-two-columns in size.

Other worksheet functions that return arrays, such as GROWTH, TREND, and TRANSPOSE, are not direction specific. The direction of the arrays resulting from these functions is determined by the direction of the values given to the function as parameters.

MORE INFORMATION

The following are examples of arrays separated by commas and semicolons:

Array 1

  1. Select A1:C1.

  2. Enter "={1,2,3}" (without quotation marks). Press COMMAND+ENTER.

The result:

   A1: 1   B1: 2    C1: 3

Array 2

  1. Select A2:A4.

  2. Enter "={1;2;3}" (without quotation marks). Press COMMAND+ENTER.

The result:

   A2: 1
   A3: 2
   A4: 3

REFERENCES

"Microsoft Excel User's Guide 2," version 4.0, pages 8-11

"Microsoft Excel User's Guide," version 3.0, pages 271-274

"Microsoft Excel Reference," version 2.2, pages 10-23


KBCategory: kbusage
KBSubcategory:

Additional words: 1.0 1.00 1.03 1.04 1.06 1.5 1.50 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 29, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.