N
The Daily Insight

How do I combine rows by column values?

Author

Christopher Snyder

Updated on March 05, 2026

Method-1: Using Consolidate Option to merge duplicate values

Then a Consolidate dialog box will appear where You have to select the whole data range as Reference and then click on Add on All references and then click on Left Column and finally press OK.

How do I merge rows in Excel based on cell value?

First, select the rows you want to merge then open the Home tab and expand Merge & Centre. From these options select Merge Cells. After selecting Merge Cells it will pop up a message which values it is going to keep. Then click on OK.

How do I combine data from multiple rows into one?

5 Ways to Convert Multiple Rows to Single row in Excel

  1. Method-1: Using The TRANSPOSE Function.
  2. Method-2: Using Power Query.
  3. Method-3: Using The TEXTJOIN Function.
  4. Method-4: Using The Ampersand Sign.
  5. Method-5: Using The CONCATENATE Function.

How do I combine columns and rows?

How to merge cells

  1. Highlight the cells you want to merge.
  2. Click on the arrow just next to "Merge and Center."
  3. Scroll down to click on "Merge Cells". This will merge both rows and columns into one large cell, with alignment intact. ...
  4. This will merge the content of the upper-left cell across all highlighted cells.

How do I combine data from multiple rows into one row in Excel?

Merge rows of data into one row with formula 2

  1. Select a blank cell, enter the formula =CONCATENATE(TRANSPOSE(A1:A10&" ")), and highlight TRANSPOSE(A1:A10&" ") in the formula.
  2. Press F9 key to convert the highlight part of formula to values.

Combine Multiple Rows into One Cell, Separated by Comma, Using Excel's Power Query

How do I put data from multiple rows into one column in Excel?

How to use the macro to convert row to column

  1. Open the target worksheet, press Alt + F8, select the TransposeColumnsRows macro, and click Run.
  2. Select the range that you want to transpose and click OK:
  3. Select the upper left cell of the destination range and click OK:

How do I consolidate data in Excel?

Click Data>Consolidate (in the Data Tools group). In the Function box, click the summary function that you want Excel to use to consolidate the data. The default function is SUM. Select your data.

How do you merge cells horizontally in Excel and keep all data?

Merge columns of data into one without losing data by CONCATENATE

  1. Select a blank cell, enter the formula =CONCATENATE(A2:C2&","), and then highlight A2:C2&”,” in the formula. ...
  2. Press F9 key to convert the highlight part of the formula to values.

Can you merge cells in Excel and keep all the data?

Choose Cells into one under "What to merge". Select the delimiter under "Separate values with". Specify the cell where you want to place the result: top-left, top-right, bottom-left or bottom-right. Make sure the Merge all areas in the selection option is selected.

How do I concatenate with a separator?

CONCATENATE Excel Ranges (With a Separator)

  1. Select the cell where you need the result.
  2. Go to formula bar and enter =TRANSPOSE(A1:A5)&” “ ...
  3. Select the entire formula and press F9 (this converts the formula into values).
  4. Remove the curly brackets from both ends.

How do I convert multiple rows to a single column with comma separated value in Excel?

1. Select a blank cell adjacent to the list's first data, for instance, the cell C1, and type this formula =CONCATENATE(TRANSPOSE(A1:A7)&",") (A1:A7 is the column you will convert to comma serrated list, "," indicates the separator you want to separate the list).

How do I merge rows but not columns?

Select a blank cell for placing the combined cell, then enter formula =CONCATENATE(A2," ",B2," ",C2," ",D2) into the Formula Bar, and then press the Enter key.

How do you merge cells in Excel based on conditions?

Method-1: Using Consolidate Option to merge duplicate values

Then a Consolidate dialog box will appear where You have to select the whole data range as Reference and then click on Add on All references and then click on Left Column and finally press OK.

How do I combine multiple cells into one cell with multiple lines?

Use the & (Ampersand) Operator

  1. Select the cell where you want to show the combined data.
  2. Type an = (equal sign) to start the formula.
  3. Click on the cell that contains the first text for the combined string.
  4. Type the & operator (shift + 7)
  5. Click on the cell that contains the next text for the combined string.

How do I group data by value in Excel?

How to Group Values in Excel

  1. Click any cell that has a value you want to group by.
  2. Click the Analyze tab on the ribbon.
  3. Click the Group Field button. You can also right-click a cell and select Group from the menu. ...
  4. Specify how you want to group your PivotTable. ...
  5. Click OK.

Where is advanced combine rows in Excel?

Select the range data that you want to combine duplicates, then apply this Advanced Combine Rows utility by clicking Kutools > Merge & Split > Advanced Combine Rows.

How do I group rows in Excel?

The shortcut key to group the data is “SHIFT + ALT + Right Arrow key.” First, we must select the rows that need to be grouped. To group these rows, we must press the shortcut key “SHIFT + ALT + Right Arrow key.

How do I merge cells horizontally in Excel?

To merge cells in Excel, select the cells you want to merge, click the Merge list arrow and select a merge option.

  1. Select the cell(s) you want to align.
  2. To vertically align cells, click the vertical alignment button you want.
  3. To horizontally align cells, click the horizontal alignment button you want.

How do I combine rows and columns in Excel?

How to combine duplicate rows into one (keeping unique values only)

  1. Select the duplicate rows you want to merge and run the Merge Duplicates wizard by clicking its button on the ribbon.
  2. Make sure your table is selected correctly and click Next. ...
  3. Select the key column to check for duplicates. ...
  4. Choose the columns to merge.

How do you combine values in a column in a row separated by comma?

Concatenate a column with comma/space by formula

  1. Select a blank cell you will place the concatenation result in, and enter the formula =CONCATENATE(TRANSPOSE(A2:A16)&",") into it.
  2. Highlight the TRANSPOSE(A2:A16)&"," in the formula, and press the F9 key to replace cell reference with cell contents.

What is the difference between concat and CONCATENATE in Excel?

The CONCAT function combines the text from multiple ranges and/or strings, but it doesn't provide delimiter or IgnoreEmpty arguments. CONCAT replaces the CONCATENATE function. However, the CONCATENATE function will stay available for compatibility with earlier versions of Excel.

Which of the following are the correct ways to combine data from a range of cells?

The best way to combine text from different cells into one cell is using the transpose function with concatenating function.