Transpose On Excel For Mac



  • In Excel 2011 Mac, you have to create your own shortcut. Go to toolscustomize keyboard. Select edit under categories, you'll find 'paste values' on the right (a couple items under paste special). Just press a shortcut sequence (command+d for example) and add that as a new shortcut. My life has improved so much since.
  • The special insert. It`s the simplest and universal way. Let's consider at once on an example.

Watch Video – How to Transpose Data in Excel

If you have a dataset and you want to transpose it in Excel (which means converting rows into columns and columns into rows), doing it manually is a complete NO!

Transpose Data using Paste Special

Transposing with copy and paste The first method of transposing is very simple. Open up the first sheet in the workbook; you’ll see a list of countries along with monetary values. Let’s turn those columns into rows.

Paste Special can do a lot of amazing things, and one such thing is to transpose data in Excel.

Transpose On Excel For Mac

Suppose you have a dataset as shown below:

This data has the regions in a column and quarters in a row.

Now for some reason, if you need to transpose this data, here is how you can do this using paste special:

  • Select the data set (in this case A1:E5).
  • Copy the dataset (Control + C) or right-click and select copy.
  • Now you can paste the transposed data in a new location. In this example, I want to copy in G1:K5, so right-click on cell G1 and select paste special.
  • In the paste special dialogue box, check the transpose option in the bottom right.
  • Click OK.

This would instantly copy and paste the data but in such a way that it has been transposed. Below is a demo showing the entire process.

Excel formula to transpose data

The steps shown above copies the value, the formula (if any), as well as the format. If you only want to copy the value, select ‘value’ in the paste special dialog box.

Transpose

Note that the copied data is static, and if you make any changes in the original data set, those changes would not be reflected in the transposed data.

If you want these transposed cells to be linked to the original cells, you can combine the power of Find & Replace with Paste Special.

Transpose Data using Paste Special and Find & Replace

Using Paste Special alone gives you static data. This means that if your original data changes and you want the transposed data to be updated as well, then you need to use Paste Special again to transpose it.

Here is a cool trick you can use to transpose the data and still have it linked with the original cells.

Suppose you have a dataset as shown below:

Here are the steps to transpose the data but keep the links intact:

  • Select the data set (A1:E5).
  • Copy it (Control + C, or right-click and select copy).
  • Now you can paste the transposed data in a new location. In this example, I want to copy in G1:K5, so right-click on cell G1 and select paste special.
  • In the Paste Special dialog box, click on the Paste Link button. This will give you the same data set, but here the cells are linked to the original data set (for example G1 is linked to A1, and G2 is linked to A2, and so on).
  • With this new copied data selected, Press Control + H (or go to Home –> Editing –> Find & Select –> Replace). This will open the Find & Replace dialog box.
  • In the Find & Replace dialog box, use the following:
    • In Find what: =
    • In Replace with: !@# (note that I am using !@# as it’s a unique combination of characters that is unlikely to be a part of your data. You can use any such unique set of characters).
  • Click on Replace All. This will replace the equal to from the formula and you will have !@# followed by the cell reference in each cell.
  • Right-click and copy the data set (or use Control + C).
  • Select a new location, right-click and select paste special. In this example, I am pasting it in cell G7. You can paste it anywhere you want.
  • In the Paste Special dialog box, select Transpose and click OK.
  • Copy paste this newly created transposed data to the one from which it is created.
  • Now open the Find and Replace dialog box again and replace !@# with =.

This will give you a linked data that has been transposed. If you make any changes in the original data set, the transposed data would automatically update.

Note: Since our original data has A1 as empty, you would need to manually delete the 0 in G1. The 0 appears when we paste links, as a link to an empty cell would still return a 0. Also, you’d need to format the new dataset (you can simply copy paste the format only from the original dataset).

Transpose Data using Excel TRANSPOSE Function

Excel TRANSPOSE function – as the name suggests – can be used to transpose data in Excel.

Suppose you have a dataset as shown below:

Here are the steps to transpose it:

  • Select the cells where you want to transpose the dataset. Note that you need to select the exact number of cells as the original data. So for example, if you have 2 rows and 3 columns, you need to select 3 rows and 2 columns of cells where you want the transposed data. In this case, since there are 5 rows and 5 columns, you need to select 5 rows and 5 columns.
  • Enter =TRANSPOSE(A1:E5) in the active cell (which should be the top left cell of the selection and press Control Shift Enter.

This would transpose the dataset.

Here are a few things you need to know about the TRANSPOSE function:

  • It is an array function, so you need to use Control-Shift-Enter and not just Enter.
  • You can not delete a part of the result. You need to delete the entire array of values that the TRANSPOSE function returns.
  • Transpose function only copies the values, not the formatting.

Transpose Data Using Power Query

Power Query is a powerful tool that enables you to quickly transpose data in Excel.

Power Query is a part of Excel 2016 (Get & Transform in the Data tab) but if you’re using Excel 2013 or 2010, then you need to install it as an add-in.

Suppose you have the data set as shown below:

Here are the steps to transpose this data using Power Query:

In Excel 2016

  • Select the data and go to Data –> Get & Transform –> From Table.
  • In the Create Table dialogue box, make sure the range is correct and click OK. This will open the Query Editor dialog box.
  • In the Query editor dialog box, select the ‘Transform’ tab.
  • In the Transform tab, go to Table –> Use First Row as Headers –> Use Headers as First Row. This ensures that the first row (that contains headers: Q1, Q2, Q3, and Q4) are also treated as data and transposed.
  • Click on Transpose. This would instantly transpose the data.
  • Click on Use First Row as Headers. This would now make the first row of the transposed data as headers.
  • Go to File –> Close and Load. This will close the Power Editor window and create a new sheet that contains the transposed data.

Note that since the top left cell of our data set was empty, it gets a generic name Column1 (as shown below). You can delete this cell from the transposed data.

In Excel 2013/2010

In Excel 2013/10, you need to install Power Query as an add-in.

Click here to download the plugin and get installation instructions.

Once you have installed Power Query, go to Power Query –> Excel Data –> From Table.

This will open the create table dialog box. Now follow the same steps as shown for Excel 2016.

You May Also Like the Following Excel Tutorials:

  • Multiply in Excel using Paste Special.

Get 51 Excel Tips Ebook to skyrocket your productivity and get work done faster

Paste Special Transpose | Transpose Function | Transpose Table without Zeros | Transpose Magic

Use the 'Paste Special Transpose' option to switch rows to columns or columns to rows in Excel. You can also use the TRANSPOSE function.

Paste Special Transpose

To transpose data, execute the following steps.

1. Select the range A1:C1.

2. Right click, and then click Copy.

Excel Paste Transpose Shortcut

3. Select cell E2.

4. Right click, and then click Paste Special.

5. Check Transpose.

6. Click OK.

Transpose Function

To insert the TRANSPOSE function, execute the following steps.

1. First, select the new range of cells.

2. Type in =TRANSPOSE(

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

4. Finish by pressing CTRL + SHIFT + ENTER.

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.

Transpose 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).

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

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.

3. Select cell A4.

4. Right click, and then click Paste Special.

5. Click Paste Link.

Result.

For

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

Excel Transpose Table To Single Column

Result.

7. Use 'Paste Special Transpose' to transpose this data.

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

Transpose On Excel For Macbook

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.