In Excel you can create arrays using almost same notation but:
- Use comma (or semicolon depending on regional settings) to separate values of same row.
- Use inverted slash
\to separate columns.
So let's make an array like this:
{1;3\2;4}
| Column 1 | Column 2 |
|---|---|
| 1 | 3 |
| 2 | 4 |
Just a few examples using INDEX:
=INDEX({1;3\2;4};1;1) will return value from row 1 and column 1 so it returns 1.
=INDEX({1;3\2;4};1;2) from row 1 and column 2 so it returns 3!!
Anyways, this notation is not used often in Excel. Normally arrays are used trough VBA and that would be a different question.
UPDATE: Looks like both separators depend on regional settings so maybe you need to figure this out. Thanks to @Jvdv for this source
UPDATE 2:: Thanks to @JosWolley for this:
If one isn't sure what the separators are for their version of Excel, it's quite easy to find out. Simply enter the formula =A1:B2 in cell C1 and then go into the formula bar, highlight the entire formula and press F9. For English-language versions this produces {0,0;0,0} (with A1:B2 empty)
In spanish version like mine is this:

No matter how many times I try to read up on it, I can't seem to grasp it.
How are array formulas useful? When do you know you have to use array formulas or when it is smart to use array formulas?
In Excel you can create arrays using almost same notation but:
- Use comma (or semicolon depending on regional settings) to separate values of same row.
- Use inverted slash
\to separate columns.
So let's make an array like this:
{1;3\2;4}
| Column 1 | Column 2 |
|---|---|
| 1 | 3 |
| 2 | 4 |
Just a few examples using INDEX:
=INDEX({1;3\2;4};1;1) will return value from row 1 and column 1 so it returns 1.
=INDEX({1;3\2;4};1;2) from row 1 and column 2 so it returns 3!!
Anyways, this notation is not used often in Excel. Normally arrays are used trough VBA and that would be a different question.
UPDATE: Looks like both separators depend on regional settings so maybe you need to figure this out. Thanks to @Jvdv for this source
UPDATE 2:: Thanks to @JosWolley for this:
If one isn't sure what the separators are for their version of Excel, it's quite easy to find out. Simply enter the formula =A1:B2 in cell C1 and then go into the formula bar, highlight the entire formula and press F9. For English-language versions this produces {0,0;0,0} (with A1:B2 empty)
In spanish version like mine is this:

If you are on Microsoft-365 then could use VSTACK(), HSTACK(). Try this-
=VSTACK({1,2},{3,4})
Or using both VSTACK() & HSTACK().
=VSTACK(HSTACK(1,2),HSTACK(3,4))
