

TRANSPOSE is one of such functions and we are going to utilize it to transpose the above table, i.e. Using an Excel array function to return a multi-cell arrayĪs already mentioned, Microsoft Excel provides a few so called "array functions" that are specially designed to work with multi-cell arrays. Once you press Ctrl + Shift + Enter, Excel will place an instance of your array formula in each cell of the selected range, and you will get the following result:Įxample 3.

Select the range of cell in some blank column, say D2:D6, and enter the following formula in the formula bar: In the previous SUM example, suppose you have to pay 10% tax from each sale and you want to calculate the tax amount for each product with one formula. So, you just enter the following formula and press Ctrl + Shift + Enter:Įxample 2. Normally, you would add an additional column, say column D, that calculates the sales change for each product using a formula like =C2-B2, and then find the maximum value in that additional column =MAX(D:D).Īn array formula does not need an additional column since it perfectly stores intermediate results in memory. Suppose you have two columns listing the number of items sold in 2 different months, say columns B and C, and you want to find the maximum sales increase.
#Excel for mac array out of script error how to
The following examples demonstrate how to use a single-cell and multi-cell array formula. Other functions, such as SUM, AVERAGE, AGGREGATE, MAX, MIN, can calculate array expressions when entered into a single cell by using Ctrl + Shift + Enter.

There exist a few Excel array functions that are designed to return multi-cell arrays, for example TRANSPOSE, TREND, FREQUENCY, LINEST, etc. An array formula residing in a single cell is called a single-cell formula.

An array formula entered in a range of cells is called a multi-cell formula. Single-cell and multi-cell array formulas in ExcelĮxcel array formula can return a result in a single cell or in multiple cells. Please pay attention that you must select some part of the formula prior to pressing F9, otherwise the F9 key will simply replace your formula with the calculated value(s). In the above example, to see the sub-totals of all products, you select B2:B6*C2:C6, press F9 and get the following result. To exit the formula evaluation mode, press the Esc key. To do this, select one or several arguments within a function's parentheses, and then press the F9 key. When working with array formulas in Excel, you can observe how they calculate and store their items (internal arrays) to display the final result you see in a cell. Use the F9 key to evaluate portions of an array formula If you forget to press Ctrl+Shift+Enter, your formula will behave like a usual formula and process only the first value(s) in the specified array(s).īecause all Excel array formulas require pressing Ctrl + Shift + Enter, they are sometimes called CSE formulas.Every time you edit an array formula, the braces disappear and you must press Ctrl+Shift+Enter again to save the changes.You must press the Ctrl+Shift+Enter shortcut to complete an array formula. Manually typing the braces around a formula won't work.When you select such a cell(s), you can see the braces in the formula bar, which gives you a clue that an array formula is in there. The items can be text or numbers and they can reside in a single row or column, or in multiple rows and columns.įor example, if you put your weekly grocery list into an Excel array format, it would look like: Essentially, an array is a collection of items. Double unary operator in array formulasīefore we start on array functions and formulas, let's figure out what the term "array" means.Single-cell and multi-cell array formulas in Excel.How to evaluate portions of an array formula (F9 key).How to enter an array formula (CTRL+SHIFT+ENTER).The aim of this tutorial is to make the learning curve as easy and smooth as possible. Indeed, array formulas one of the most confusing Excel features to learn. And still, 90% of users have never used array functions in their worksheets simply because they are scared to start learning them. A single array formula can perform multiple calculations and replace thousands of usual formulas. In this tutorial, you will learn what an Excel array formula is, how to enter it correctly in your worksheets, and how to use array constants and array functions.Īrray formulas in Excel are an extremely powerful tool and one of the most difficult to master.
