| | An array formula is a special type of formula that works specifically with arrays. | |
| | An array formula can produce a single result or multiple results where each result is displayed in a separate cell. | |
| | An array formula can occupy a single cell or a range of cells. | |
| | An array is basically just a collection of data of the same type that can be treated as a single entity. This is held in memory. | |
| | For those of you that are not familiar with the concept of an array, it is just a collection of values (in this case typically numbers). | |
| | The main advantage of using an array formula is that your data can be manipulated as a whole block and passed to a function or formula as a single unit. | |
| | It allows you to apply a single formula to a range of cells, returning either a single value or an array of values (each value being in a separate cell). | |
| | Array formulas allow you to work on a range of cells without having to refer to all the individual cells in your formulas. | |
| | Excel automatically puts curly brackets {} around any array formulas. These brackets cannot be entered manually. | |
| | Array formulas act on two or more sets of values known as array arguments. Each array argument must have the same number of rows and columns. | |
| | | Array formulas guarantee that all the formulas are the same and is a good way to ensure consistency among your formulas. | |
| | | Using array formulas can speed up the time taken for formulas to be evaluated since the arrays can be stored in memory. | |
| | | A workbook that contains array formulas will mean that the formulas are more efficient and will use less memory. | |
| | | Using array formulas will help to prevent the formulas being changed accidentally. It is not possible to change the contents of a single cell in an array formula. You must change all the cells that contain the formula. | |
| | | A worksheet that contains array formulas will be harder to understand, meaning that novices are less likely to change the formulas, especially if they do not understand how they work. | |
| | | Array formulas do make it possible to perform some calculations that would otherwise be impossible using traditional formulas. | |
| | The formulas in cells C12 & C13 use the plus operator to sum the individual cells. | |
| | Entering these manually would be quite time consuming if the list was any longer. Each cell must be added manually to the formula. | |
| | The formulas in cells C15 & C16 use an array formula to add up the subtotals and must be entered using (Ctrl + Shift + Enter), otherwise #VALUE! will be returned. | |
| | These array formulas use two 1-dimensional arrays, C3:C10 and D3:D10. | |
| | The IF() function compares the corresponding values in the first array C3:C10 and then returns the corresponding value from the second array D3:D10. | |
| | The SUM() function is then passed this new array (which exists only in memory) and returns the total value. | |
| | | Using a lot of array formulas in one workbook will increase the time taken to re-calculate. | |
| | | The majority of the calculations that can be performed using array formulas can also be performed using regular formulas. Although there are a few exceptions. | |
| | | If you accidentally enter an array formula by not pressing (Ctrl + Shift + Enter) then the formula will either return an incorrect value or #VALUE! will be returned. | |
| | | To quickly select the cells which contain an array block you can use the shortcut key (Ctrl + / ). | |
| | | A group of cells that is occupied by the same array formula is often called an Array Block or Array Range. | |
| | | You cannot change any of the individual cells within an array block. | |
| | | You cannot use column references (such as "A:A" or "D:D") in your array formulas. | |
| | | The number of rows must always be the same in all the cell ranges. This is to ensure that all the temporary arrays used are the same length. | |