Even should you’ve been coasting by way of Excel with out totally understanding what’s taking place on each sheet you open, you’ve most likely observed curly brackets showing in some formulation — regardless that you by no means typed them your self. In case you do not feel like a spreadsheet wizard, it’s simple to disregard them, particularly when all of your formulation are working as anticipated.
Nevertheless, should you’re something like me and have a tendency to query issues that present up with out a clear rationalization, these brackets are laborious to miss. You’ll be questioning why they’re in your formulation and whether or not they sign one thing essential. Do they level to a helpful function working behind the scenes, or are they a warning that one thing uncommon is happening?
Legacy array formulation
The curly brackets you possibly can’t sort your self
Screenshot by Ada
The commonest sort of curly brackets you’ll discover in Excel formulation is the one wrapped round a system expression, like this:
{=SUM(I2:I100*J2:J100)}
This type of system is named a legacy array system, generally known as a CSE system. The title comes from the keyboard shortcut used to create it: Ctrl + Shift + Enter.
In case you’re seeing these brackets, it’s not since you added them your self. Excel inserts them robotically once you verify a system utilizing that three-key mixture. That is Excel’s approach of indicating that the system ought to course of a spread of values as an array; in different phrases, it handles a whole set of information without delay slightly than calculating cell by cell.
Principally, when you sort within the above system, with out the curly brackets, and press Ctrl + Shift + Enter, you’ll be capable to multiply two full columns and sum the outcomes utilizing only one system with out counting on helper columns or breaking the duty into a number of steps in any model of Excel.
Associated
Most Excel customers do not know that these options exist
Able to transcend the standard formulation and pivot tables?
In case you attempt to sort these outer brackets manually, Excel will deal with your system as plain textual content and received’t calculate something. You must set off them with Ctrl + Shift + Enter. And should you return to edit a legacy array system, the brackets will disappear; you’ll must press Ctrl + Shift + Enter once more after modifying to revive the array conduct.
Array constants
The curly brackets you do sort your self
Typically, the curly brackets you’ll discover within the system bar are inside a system slightly than round it, like this:
=VLOOKUP(“Stationery”, A2:D100, {2,3,4}, FALSE)
This sort of system is totally completely different from a CSE system. It’s referred to as an array fixed (or array literal), and in contrast to these outer brackets, these are ones you enter your self. They’re tremendous helpful once you wish to cross a hard and fast set of inputs to a operate with out referencing a separate vary of cells.
The best way you organize values contained in the brackets determines their construction:
Commas separate values horizontally into columns
{1,2,3} will create a row of three values
Semicolons stack values vertically into rows
{1;2;3} will produce a single column
Combining each commas and semicolons creates a two-dimensional grid
{1,2;3,4} will kind a 2×2 desk
You may see array constants seem in a number of eventualities, similar to pulling a number of columns without delay with VLOOKUP, defining customized type orders in features like GROUPBY and PIVOTBY, or supplying a listing of positions to features like SMALL or LARGE to extract values from a dataset in a single step.
For example, if I wish to discover the highest three revenue values from column N, I can use this system:
=LARGE(N2:N100, {1, 2, 3})
Because the vary begins at N2:N100, Excel appears on the Whole Revenue column and returns the primary, second, and third-largest values concurrently. As a result of I’m utilizing Excel 365, the outcomes will spill throughout three horizontal cells once I press Enter. In older variations of Excel, I’d want to substantiate this as an array system utilizing Ctrl + Shift + Enter.
To return a number of outcomes appropriately, it’s essential to pre-select the precise variety of cells to carry the outcomes (e.g., 3 horizontal cells for the highest 3 income), then sort the system and press Ctrl + Shift + Enter. If you choose just one cell earlier than CSE, Excel returns solely the primary aspect of the array. You’d then must manually copy the system throughout or down.
Once more, think about you’re working with lookup information and your order ID sits in column G. If you wish to retrieve the delivery date, unit worth, complete value, and complete revenue (columns H, J, M, and N) for a selected ID, you might write:
=VLOOKUP(897751939, G2:N100, {2,4;7,8}, FALSE)
As a result of the vary begins in column G, column G turns into place 1. The numbers 2, 4, 7, and eight map to the opposite columns you wish to return. Excel then pulls a number of values without delay, putting the delivery date and unit worth facet by facet on one row, and the overall value and complete revenue on the subsequent.
Fashionable Excel and the shift to dynamic arrays
No extra Ctrl + Shift + Enter
Screenshot by Ada
In case you’re utilizing Microsoft 365 like I’m, you’ve most likely observed that Excel has advanced fairly a bit. Most formulation now robotically spill their outcomes into adjoining cells without having to press Ctrl + Shift + Enter. That is the period of dynamic arrays, and it has made legacy CSE formulation largely pointless.
The place you as soon as needed to depend on a CSE system to return outcomes throughout a number of cells, features like FILTER, SEQUENCE, and UNIQUE now deal with that conduct by default once you press Enter. Excel determines how a lot area the output wants and fills it accordingly, which makes the entire course of really feel extra intuitive.
That mentioned, array constants are nonetheless very related. Even in fashionable Excel, you’ll nonetheless must sort one thing like {2,3;4,3} once you wish to cross a hard and fast set of values right into a system. Dynamic arrays have modified how outcomes are returned, however array constants stay one of many easiest and cleanest methods to outline the inputs your formulation depend on.
Associated
Excel’s new group of features will break your mind in a great way
When you grasp these, spreadsheets really feel alive.
Curly brackets have been telling you one thing all alongside
Ever since I realized what curly brackets imply in Excel, I’ve discovered it a lot simpler to work by way of spreadsheets, whether or not I’m inheriting another person’s file or bettering my very own formulation. I can rapidly inform the distinction between a legacy CSE system and an array fixed, which is at all times useful when troubleshooting.
And now that dynamic arrays have gotten the usual, there’s by no means been a greater time to get comfy with how all of this suits collectively.

