Excel Example – Transpose in Excel

Date:

Share post:

The ‘Paste Special Transpose‘ option to switch rows to columns or columns to rows in Excel. You can also use the TRANSPOSE function. Transposing means flipping data from rows to columns, or vice versa. It’s useful for reorganizing data for better analysis or presentation.

Here are two main methods to transpose data in Excel:

1. Using the TRANSPOSE Function:

  • Select the range of cells where you want the transposed data to appear. Make sure it has the same number of cells as the original data, but with columns and rows flipped.
  • Type =TRANSPOSE( and then select the original range of cells.
  • Press Ctrl+Shift+Enter (not just Enter). This is essential for array formulas like TRANSPOSE.

2. Using Paste Special Transpose:

  • Copy the original data you want to transpose.
  • Select the top-left cell of the destination range where you want the transposed data.
  • Right-click and choose “Paste Special” > “Transpose.”

Paste Special Transpose

To transpose data, execute the following steps.

1. Select the range A1:C1.

2. Right click, and then click Copy.

Right Click Copy

3. Select cell E2.

4. Right click, and then click Paste Special.

5. Check Transpose.

Check Transpose

6. Click OK.

Paste Special Transpose Result

Transpose Function

To insert the TRANSPOSE function, execute the following steps.

1. First, select the new range of cells.

Select the New Range

2. Type in =TRANSPOSE(

3. Select the range A1:C1 and close with a parenthesis.

Transpose Function

4. Finish by pressing CTRL + SHIFT + ENTER.

Transpose Function in Excel

Note: the formula bar indicates that this is an array formula by enclosing it in curly braces {}. To delete this array formula, select the range E2:E4 and press Delete.

5. If you have Excel 365 or Excel 2021, simply select cell E2, enter the TRANSPOSE function and press Enter. Bye bye curly braces.

See also  Excel Introduction - Formulas and Functions

Dynamic Array Formula

Note: the TRANSPOSE function, entered into cell E2, fills multiple cells. Wow! This behavior in Excel 365/2021 is called spilling.

Transposing Table without Zeros

The TRANSPOSE function in Excel converts blank cells to zeros. Simply use the IF function to fix this problem.

1. For example, cell B4 below is blank. The TRANSPOSE function converts this blank cell to a zero (cell G3).

Transpose Table

2. If blank, the IF function below returns an empty string (two double quotes with nothing in between) to transpose.

Transpose Table without Zeros

Transpose Magic

The ‘Paste Special Transpose’ option is a great way to transpose data but if you want to link the source cells to the target cells, you need a few magic tricks.

1. Select the range A1:E2.

2. Right click, and then click Copy.

Copy Data

3. Select cell A4.

4. Right click, and then click Paste Special.

5. Click Paste Link.

Click Paste Link

Result.

Paste Link Result

6. Select the range A4:E5 and replace all equal signs with xxx.

Replace All

Result.

Ready to Transpose

7. Use ‘Paste Special Transpose’ to transpose this data.

Transposed Data

8. Select the range G1:H5 and replace all occurrences of ‘xxx’ with equal signs (the exact opposite of step 6).

Transpose Magic

Note: for example, change the value in cell C2 from 16 to 36. The value in cell H3 will also change from 16 to 36.

Additional Tips:

  • Dynamic Arrays (Excel 365): If you have Excel 365, you can simply enter the TRANSPOSE formula in the top-left cell and press Enter. Excel will automatically fill the rest of the cells.
  • Preserve Formatting: To maintain formatting, use “Paste Special” > “Transpose” > “Values” or format the transposed cells separately.
  • Links: TRANSPOSE creates links to the original data. If the original data changes, the transposed data will update as well.
  • Converting to Values: To break the link and create independent values, copy the transposed cells and paste them as values (Paste Special > Values).
  • Transpose for Pivot Tables: You can create pivot tables with transposed data for different perspectives on your data.
See also  Excel VBA - Userform in Excel

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related articles

Excel Example – Subtract in Excel

Subtract There's no SUBTRACT function in Excel. However, there are several ways to subtract numbers in Excel. Are you...

Excel Example – Most Used Functions in Excel

Most Used Functions Let's check out the 10 most used Excel functions. Visit our section about functions for detailed...

Excel Example – ROW function in Excel

The ROW function in Excel returns the row number of a reference. For example, =ROW(C4) returns 4. The...

Excel Example – Move Columns in Excel

To move columns in Excel, use the shift key or use Insert Cut Cells. You can also change...