Excel Transpose function columns to rows

The Transpose function is an array function which is used to rotate the contents of columns to rows and rows to columns in Microsoft Excel. Microsoft Excel has 2 options to use the Transpose Function.

 
Let’s take an example and understand how we can use the Transpose function.
 
I have a table in range A2:A7 which contains the Expenses for a particular department. To transpose all the contents follow the below mentioned steps:-

img1

 

Use the Transpose function with array

    • Select the range B1:G1, press the key F2 on your keyboard, write the formula =Transpose (A2:A7)and press the key “CTRL+ Shift+ Enter”, The formula will show as {=Transpose (A2:A7)}
    • The function will return the values in column A as headers in row 1 starting with column B

img2

 

  • If you attempt to delete a single cell from these cells which have been transposed, it won’t be possible and an error popup will displaywith the message that you cannot change a part of an array.

 
Use the Transpose feature in Excel

  • Select the range A2:A7 containing the header of expenses
  • Copy the content by pressing the key “CTRL + C” on the keyboard
  • Select the cell B2, by right clickingwith the mouse and click on “Paste Special”
  • The “Paste Special” dialog box will appear, click on “Transpose” and click on OK
  • The Transpose option pastes the data in the opposite direction (that is horizontally to vertically or vice versa)

 

img5

 

Below you can find more example to learn about Transpose:-

How to transpose cells in Microsoft Excel

How to transposing Values from Columns into Rows, and Vice Versa

How to use Transpose function

How to Transpose in Microsoft Excel 2007

How to Copy Vertical and Paste Horizontal in Microsoft Excel

 

image 48

 

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com

 
 

Comments

  1. Create the reference going the direction of the existing data. Highlight references and bring up the find/replace dialog box (ctrl+F) and then replace = with D= or something similar.

    Once that is done take the new reference, copy it, select where you want the data to be and paste special -> transpose.

    Select the new data open find replace and replace D= with =.

    All done

    • When I try to replace = with D=, I get the following error:

      Excel cannot find any data to replace. Check if your search formatting and criteria are defined correctly.. .. it may be a protected sheet.

      It's not protected I checked... I have no idea why this error is coming up.
      Help is appreciated.
      Thanks!

  2. "If you like copy& paste transpose formula from one worksheet to another , first method works. Second method is better, but if you simply copy&paste special with transpose u have to include worksheet-name.

    make this:

    first: in worksheet with name 'source'
    cell a1: value 2000
    cell b1: value 2001
    cell c1 :value 2002

    cell a2: formula: '=source!A$1'
    cell b2: formula: '=source!B$1'
    cell c2: formula: '=source!C$1'

    now select range A2:C2
    Copy

    select a5

    past special formula transpose

    done! "

  3. "make this:

    first:
    cell a1: value 2000
    cell b1: value 2001
    cell c1 :value 2002

    cell a2: formula: '=A$1'
    cell b2: formula: '=B$1'
    cell c2: formula: '=C$1'

    now select range A2:C2
    Copy

    select a5

    past special formula transpose

    done!"

  4. "If you like copy& paste transpose formula from one worksheet to another , first method works. Second method is better, but if you simply copy&paste special with transpose u have to include worksheet-name.

    make this:

    first: in worksheet with name 'source'
    cell a1: value 2000
    cell b1: value 2001
    cell c1 :value 2002

    cell a2: formula: '=source!A$1'
    cell b2: formula: '=source!B$1'
    cell c2: formula: '=source!C$1'

    now select range A2:C2
    Copy

    select a5

    past special formula transpose

    done! "

  5. "make this:

    first:
    cell a1: value 2000
    cell b1: value 2001
    cell c1 :value 2002

    cell a2: formula: '=A$1'
    cell b2: formula: '=B$1'
    cell c2: formula: '=C$1'

    now select range A2:C2
    Copy

    select a5

    past special formula transpose

    done!"

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.