How to Copy Paste Vertical to Horizontal in Excel (2 Easy Ways)

 

Let’s use a daily Sales Report of a fast-food shop to demonstrate vertical-to-horizontal copying. Columns B, C, and D of this dataset contain the names of Salesmen, Items, and their corresponding Qty.

copy paste vertical to horizontal excel


Method 1 – Using Paste Special Option

Steps:

  • Select cells in the B4:D10 range.
  • Press Ctrl + C.

Using Paste Special Option

  • Right-click on cell B12 where we want to paste the copied data.
  • You will get a context menu. Select Paste Special on it.

  • Immediately, the Paste Special dialog box opens. Check Transpose at the bottom of the box.
  • Click OK.

Working on the Paste Special dialog box to copy paste vertical to horizontal in Excel

  • Finally, you can see the data in horizontal rows in the B12:H14 range.

Using Paste Special Option to copy paste vertical to horizontal excel

Read More: How to Copy Horizontal and Paste Vertical in Excel


Method 2 – Applying VBA Code

Steps:

  • Right-click on the sheet named VBA. This opens a context menu.
  • Select the View Code command.

Applying VBA Code

  • Immediately, the Microsoft Visual Basic for Applications window appears. Also, we can see a code module inserted for Sheet3 (VBA) on the right side of the display.

  • Copy the following code and paste it into the module:
Public Sub Copy_Paste_Vertical_to_Horizontal()
Range("B4:D10").Copy
Range("B12").PasteSpecial Transpose:=True
End Sub

VBA Code to copy paste vertical to horizontal in excel

This creates a sub-procedure with the name Copy_Paste_Verticla_to_Horizontal. It copies all the cells in the B4:B10, then pastes them in cell B12 which is the starting cell of our pasted data. We put the status of Transpose as True.

  • Run the code using the green play button or press F5.

Executing the Code

  • Return to the VBA worksheet and see the data arranged horizontally.

Applying VBA Code to copy paste vertical to horizontal in excel


How to Change Vertical Text to Horizontal in Excel

Consider the dataset with the names of the Sales Person, the names of the Product, and their consecutive sales amount for the months of January to May of the year 2022. All the text in the headings is in vertical alignment. Now, we’ll change these vertical texts to horizontal ones in Excel.

How to Change Vertical Text to Horizontal in Excel

Steps:

  • Select the cells containing the headings in the B4:H4 range.
  • Press Ctrl + 1 on the keyboard.

Selecting Cells and opening Format Cells dialog box

  • The Format Cells dialog box should pop up.
  • Go to the Alignment tab.
  • Write down 0 in the box of Degrees.
  • Click OK.

Making 0 degree Alignment

  • All the vertical texts will get changed to horizontal ones.

Changing Vertical Text to Horizontal in Excel


Using Keyboard Shortcut to Paste Horizontal in Excel

Steps:

  • Select any cell inside the range. In this case, we selected cell B4.
  • Press the Ctrl and A buttons simultaneously on the keyboard. This selects the whole range (here, it’s B4:D10).

Using Shortcut to Paste Horizontal in Excel

  • Press Ctrl + C on your keyboard. This command copies the entire selection.

  • Go to cell B12 where we want to paste the data.
  • Press the Ctrl + Alt + V keys altogether.

Pasting Data

  • The Paste Special dialog box pops up.
  • Press the E key on the keyboard.
  • Press Enter.

  • You can see the data in horizontal rows.

Using Shortcut to Paste Vertical to Horizontal in Excel


Practice Section

We have provided a practice section like the one below in each sheet on the right side.

Practice section


Download Practice Workbook

You may download the following Excel workbook for practice.


Related Articles


<< Go Back to Copy Paste in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shahriar Abrar Rafid
Shahriar Abrar Rafid

Shahriar Abrar Rafid, BSc, Naval Architecture and Marine Engineering, Bangladesh University of Engineering and Technology, Bangladesh, has worked with the ExcelDemy project for more than 1 year. He has written over 100+ articles for ExcelDemy. He is a professional visual content developer adept at crafting scripts, meticulously editing Excel files, and delivering insightful video tutorials for YouTube channels. His work and learning interests vary from Microsoft Office Suites and Excel to Data Analysis, VBA, and Video recording and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo