How to Convert Multiple Rows to Single Row in Excel (5 Methods)

A dataset composed of 2 columns named  Employee ID and Employee Name and 5 rows will be used to show how to convert multiple rows into a single row.

dataset


Method 1 – Using The TRANSPOSE Function

Steps:

  1. Use the TRANSPOSE function and select the desired range.
    =TRANSPOSE(array)
    Here, array= B4:B8
    Transpose function
  2. Press ENTER.
    Convert multiple rows to single row in Excel

Method 2 – Using Power Query

Steps:

  1. Under the Data tab select the From Table/Range
    Creating Table of Power Query
  2. In the Create Table dialog box scheck the My table has headers option and select the whole dataset.
    selecting Table range
  3. Press ENTER. The Power Query Editor will appear
  4. Select the desired range.
    Power Query Editor
  5. In the Transform tab select the Transpose command
    convert multiple rows to a single row

Method 3 – Using The TEXTJOIN Function

Steps:

  1. The TEXTJOIN function is defined as,
    =TEXTJOIN( delimiter, TRUE, range)
    Here, the delimiter is a comma, TRUE is for Ignore empty cells, range=B5:B9
    Textjoin function
  2. Press ENTER. The row values are now combined in E7
    Output after using Textjoin function
  3. Next, the combined values in one cell have to be separated into different columns. In the Data tab go to Data Tools>>Text to Columns.
    Using Text to column
  4. In the first Convert Text to Columns Wizard dialog box select the Delimited option and click on
    Dialog box of text to column
  5. Select Comma as Delimiters and then click on
    convert text to column wizard
  6. Select the Column data format as General and then click on
    convert text to column wizard
  7. After completing the process, the following table will appear.
    convert multiple rows to a single row

Read More: How to Merge Rows with Comma in Excel


Method 4 – Using The Ampersand Sign

  1. Many cells can be combined in a single cell with
    =” Text 1”&” ”&”Text 2”&” ”&”Text 3”
    In this way various texts can be combined with space as a separator, here B4, B5, B6 are used as texts.
    Using ampersand
  2. Press ENTER.
    combined texts
  3. Follow Step 3 to Step 6 of Method 3 to separate data into different columns as below.
    convert multiple rows to a single row

Read More: How to Merge Rows Without Losing Data in Excel


Method 5 – Using The CONCATENATE Function

  1. The CONCATENATE function is defined as,
    =CONCATENATE(Text1,Text2,Text3…)
    Here B4, B5, B6, and Space between them are used as texts.
    Concatenate function
  2. Press ENTER.
    Concatenated texts
  3. Follow Step 3 to Step 6 of Method 3 to separate data into different columns as below.

    <img class="alignnone size-full wp-image-37353" style="background-color: #ffffff; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;" src="https://www.exceldemy.com/wp-content/uploads/2021/10/convert-multiple-rows-to-single-row-20.png" alt="convert multiple rows to a single row" width="566" height="381" />


Download Excel Workbook


Further Readings


<< Go Back to Merge Rows in Excel  | Merge in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjima Hossain
Tanjima Hossain

TANJIMA HOSSAIN is a marine engineer who enjoys working with Excel and VBA programming. For her, programming is a handy, time-saving tool for managing data, files, and online tasks. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. She holds a B.Sc. in Naval Architecture & Marine Engineering from BUET and is now a content developer. In this role, she creates tech-focused content centred around Excel and VBA. Apart from... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo