
When you want to total the marks scored by any of the students, for example, student “A”, in all subjects normally you can use the formula as below in Cell F2. See the sample data set below which is showing the marks of three students – student “A”, “B” and “C” – in an exam that in four different subjects. You can read more about here – Array Formula: How It Differs in Google Sheets and Excel. In Excel before entering the formula, you should first select the range for the result to be expanded. The latter option is not applicable to Excel. In Google Sheets, you can either use the shortcut key Ctrl+Shift+Enter or directly type the ARRAYFORMULA to make a formula an array formula. But in Google Sheets, the shortcut key combination puts the ARRAYFORMULA, a Google Sheets function, instead. In Excel, when you apply the shortcut key combination as above, it puts the open and close Curly Brackets to make the formula an array formula. It’s the same in Excel and Google Sheets. Normally we use the Enter key to complete the entry of value, text, formula, or any special character in a cell.īut in the case of array formula, instead of simply using the Enter key to complete the entry, we should use the Ctrl+Shift+Enter key combination. You can convert a normal formula or you can call a non-array formula to an array formula very easily. Array Formula Quick Tips in Google Sheets The purpose of the ArrayFormula function in Google Sheets is to allow the use of arrays in non-array functions. See the screenshot above for the formula in cell G3.

… or a range, mathematical expression using one cell range or multiple ranges of the same size.

You can check it by with or without using ArrayFormula with the above IF. Since the IF logical formula returns multiple results, we must use the ArrayFormula function with it in Google Sheets. The argument array_formula can be a function that returns a result greater than one cell…Īssume cell A1:A4 contains the below values. The Syntax and Purpose of the ArrayFormula Function in Google Sheets It expands automatically to the rows down in the range (Array) if provided enough blank cells to expand. You only need to enter the ArrayFormula in a single cell.

From this example, you can understand one thing.
