Transpose
Transpose
Step 4 Step 5
Sometimes you don't want to copy and paste to transpose. In this case, you can use a formula to transpose rows and columns. Here's how to do that:
To transpose this data, you need to select some blank cells first. Since the data in cells C33 to H34 on the right has six columns and two rows, you need to select the opposite: two columns and six rows. Do this by selecting cells C40 to D45.
This is kind of This data has 6 columns... Step 1 Step 2
Select any of the transposed cells, for example cell C41. Look at the formula at the top of Excel. You’ll see that the formula looks like this: {=TRANSPOSE(C33:H34)}
1 To transpose this data, you need to select some blank cells first. Since the data Step 3
on the right has 6 columns and 2 rows, you need to select the opposite: 2
columns and 6 rows. Do this by selecting the yellow cells. Item Amount
Bread 50
2 This is kind of tricky, so pay close attention. With those cells still selected, type Donuts 100
the following: =TRANSPOSE(C33:H34) ….but don’t press Enter. ...and these 6 rows
Cookies 40
before you type the
Cakes 50 formula.
3 Press Ctr l Shift Enter Pies 20
Step 4-5
If you get #VALUE! as a result, try again starting at step 1.
4 Click any of the yellow cells to select just one. Look at the formula at the top of
Excel. You’ll see that the formula looks like this:
{=TRANSPOSE(C33:H34)}
5 Click another yellow cell. Look at the formula bar again. The formula is the same.
Why? Because this is an array formula.
What's an array formula?
An array formula can perform calculations on more than one cell in an array. In the example above, the array is the original data set is cells C33:H34. The TRANSPOSE function then switches the horizontal orientation of the cells to a vertical orientation.
You always finish an array formula with CTRL+SHIFT+ENTER, not just ENTER. Pressing CTRL+SHIFT+ENTER calculates the function against the array. When you're done, Excel puts special brackets { } around the formula. These brackets are a visual clue that the selected cell is part of an ar
KEEP IN MIND…There are three things to keep in mind when using an array formula: 1) Always select multiple cells first, and then withKEEPthoseINcells
MIND…
selected, start typing the array formula. That's the key: Select multiple cells first, then start typing.2) When you're done typing an array form
EXCEL SPEAK: Because array formulas require CTRL+SHIFT+ENTER, some people informally call array formulas, "CSE formulas." There are three things to keep in mind when using an array
What's an array formula?
Go to cell A72 for the next instruction. formula:
1) Always select multiple cells first, and then with those cells
An array formula can perform calculations on more than one cell in an array. In the example selected, start typing the array formula. That's the key: Select
above, the array is the original data set in cells C33:H34. The TRANSPOSE function then multiple cells first, then start typing.
switches the horizontal orientation of the cells to a vertical orientation.
2) When you're done typing an array formula, press
You always finish an array formula with CTRL+SHIFT+ENTER, not just ENTER. Pressing CTRL+SHIFT +ENTER.
CTRL+SHIFT+ENTER calculates the function against the array. When you're done, Excel puts
3) Once you enter an array formula, you cannot interrupt that new
special brackets { } around the formula. These brackets are a visual clue that the selected cell EXCEL SPEAK
array. For example, you cannot type over or delete just one of the
is part of an array formula. You can't type these brackets yourself. Excel puts them in when Because array formulas require CTRL+SHIFT+ENTER, some
cells. You also cannot insert a new row or column within that array.
you press CTRL+SHIFT+ENTER. If you need to any of that, select all of the cells that have the array
people informally call array formulas, "CSE formulas."
formula, press Delete, and then make your changes and recreate
More information on the web the formula.
Transpose (rotate) data from rows to columns or vice versa
All about the TRANSPOSE function
Create an array formula
Go back to top by pressing CTRL+HOME. To proceed to the next step, press CTRL+PAGE DOWN.