# Basic array formula example

{=MAX(rng1-rng2)}

To calculate the max or min change in a set of data as shown, without using a helper column, you can use an array formula. In the example, the formula in G6 is:

{=MAX(C5:C12-D5:D12)}

*Note: this is an array formula and myst be entered with control + shift + enter.*

The example on this page shows a simple array formula. Working from the inside out, the expression:

`C5:C12-D5:D12`

Results in an array containing seven values:

{17;19;32;25;12;26;29;22}

Each number in the array is the result of subtracting the "low" from the "high" in each of the seven rows of data. This array is returned to the MAX function:

=MAX({17;19;32;25;12;26;29;22})

And MAX returns the maximum value in the array, which is 32.

### MIN change

To return the minimum change in the data, you can substitute the MIN function for the MAX function:

{=MIN(C5:C12-D5:D12)}

As before, this is an array formula and myst be entered with control + shift + enter.

### More on array formulas

To understand array formulas, you must learn to investigate the results of various operations inside a formula as it is being evaluated by Excel. In particular, you need to know how to use the F9 key to debug a formula and how to use the Evaluate Feature in Excel. See video links below for a quick demo.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

## Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.