**Array Formula Overview**

In spreadsheet programs such as Excel and Google Spreadsheets, an array is a range or series of related data values that are normally stored in adjacent cells in a worksheet.

An *array formula* is a formula that carries out calculations - such as addition, or multiplication - on the values in one or more arrays rather than a single data value.

Array formulas:

- use the same syntax as regular formulas - they all begin with an equal sign ( = ) for example;
- use the same mathematical operators;
- and follow the same order of operation .

### Array Formulas and Excel Functions

Many of Excel's built-in functions - such as SUM, AVERAGE, or COUNT - can also be used in an array formula.

There are also a few functions - such as the TRANSPOSE function - that must always be entered as an array in order for it to work properly.

The usefulness of many functions such as *INDEX and MATCH* or *MAX and IF* can be extended by using them together in an array formula.

### CSE Formulas

In Excel, array formulas are surrounded by curly braces "**{ }** ". These braces cannot just be typed in, but must be added to a formula by pressing the *Ctrl, Shift, *and *Enter* keys after typing the formula into a cell or cells.

For this reason an array formula is sometimes referred to as a *CSE* formula in Excel.

An exception to this rule is when curly braces are used to enter an array as an argument for a function that normally contains just a single value or cell reference.

For example, in the tutorial below that uses VLOOKUP and the CHOOSE function to create a left lookup formula, an array is created for the CHOOSE function's *Index_num* argument by typing the braces around the entered array.

### Steps to Creating an Array Formula

- Enter the formula;
- Hold down the
*Ctrl and Shift*keys on the keyboard; - Press and release the
*Enter*key to create the array formula; - Release the
*Ctrl and Shift*keys.

If done correctly, the formula will be surrounded by curly braces and each cell holding the formula will contain a different result.

### Editing an Array Formula

Any time an array formula is edited the curly braces disappear from around the array formula.

To get them back, the array formula must be entered by pressing the *Ctrl, Shift, *and *Enter* keys again just as when the array formula was first created.

### Types of Array Formulas

There are two main types of array formulas:

- multi cell array formula - the same formula is located in more than one cell in a worksheet
- single cell array formula one formula that carries out multiple calculations in a single worksheet cell

### Multi Cell Array Formulas

Like their name suggests, these array formulas are located in multiple worksheet cells and they also return an array as an answer.

In other words, the same formula is located in two or more cells and returns different answers in each cell.

How it doe this is that each copy or* **instance *of the array formula performs the same calculation in each cell it is located in, but each instance of the formula uses different data in its calculations and, therefore, each instance produces different results.

An example of a multiple cell array formula would be:

{=A1:A2 * B1:B2}

If the above example is located in cells C1 and C2 in a worksheet then the following results would be:

- the data in A1 is multiplied by the data in B1 and the results stored in cell C1
- the data in A2 is multiplied by the data in B2 and the results stored in cell C2

### Single Cell Array Formulas

This second type of array formulas use a function - such as SUM, AVERAGE, or COUNT, to combine the output of a multi-cell array formula into single value in a single cell.

An example of a single cell array formula would be:

{=SUM (A1:A2 * B1:B2)}

This formula adds together the product of A1*B1 and A2*B2 and returns a single result in a single cell in the worksheet.

Another way of writing the above formula would be:

= (A1 * B1) + (A2 * B2)

### List of Excel Array Formulas

Below are listed a number of tutorials containing Excel array formulas.

- The first tutorial covers multi cell array formulas
- The next eight tutorials are about single cell array formulas using a variety of Excel functions
- The last tutorial is on the TRANSPOSE function

##
01
of 10

##
02
of 10

##
03
of 10

This array formula can be used to find the average value for the existing data while ignoring error values - such as #DIV/0!, or #NAME?

It uses the AVERAGE function along with the IF and ISNUMBER functions.

##
04
of 10

Use the SUM function and IF function in an array formula to count - rather than sum - cells of data that meet one of several conditions.

This differs from Excel's COUNTIFS function which requires all set conditions be met before the cell is counted.

##
05
of 10

This tutorial combines the MAX function and IF function in an array formula that will find the largest or maximum value for a range of data when a specific criterion is met.

##
06
of 10

Similar to the article above, this one combines the MIN function and IF function in an array formula in order to find the smallest or minimum value for a range of data when a specific criterion is met.

##
07
of 10

The MEDIAN function in Excel finds the middle value for a list of data. By combining it with the IF function in an array formula, the middle value for different groups of related data can be found.

##
08
of 10

##
09
of 10

The VLOOKUP function normally only searches for data located in columns to the right, but by combining it with the CHOOSE function a l*eft lookup formula* can be created that will search columns of data to the left of the *Lookup_value *argument.

##
10
of 10

The TRANSPOSE function is used to copy data located in a row into a column or copy data located in a column into a row. This function is one of the few in Excel that must always be used as an array formula.