How to Use the Consolidate Function for Text Data in Excel – 3 Examples

Example 1 – Use the Consolidate Function for Text Data from Multiple Worksheets with the Power Query Tool

  • Make sure all worksheets have the same rows and column headers.

Consolidate Function for Text Data in Excel

  • Go to the Data tab > From Table/Range.

Consolidate Function for Text Data in Excel

  • In “Create Table”, select the data table in the first worksheet.
  • Check “My table has headers”.
  • Click OK.

Consolidate Text Data from Multiple Worksheets Using Power Query

  • In the power query window, rename the table.
  • Click “Close & Load” and select “Close & Load to”.

Consolidate Text Data from Multiple Worksheets Using Power Query

  • Select “Only Create Connection” in “Import Data”.
  • Click OK.

Consolidate Text Data from Multiple Worksheets Using Power Query

  • Follow the same steps for the remaining worksheet data and create tables in the power query.
  • Go to the Data tab and select Queries & Connections.

Consolidate Text Data from Multiple Worksheets Using Power Query

  • Right-click Table 1 and select Append.

Consolidate Text Data from Multiple Worksheets Using Power Query

  • In the Append window, select three or more tables.
  • Add Table 2 and Table 3 in Tables to Append.

Consolidate Text Data from Multiple Worksheets Using Power Query

  • You will see the consolidated text data under the same header.

Consolidate Text Data from Multiple Worksheets Using Power Query

  • To import the data to the worksheet, click Close & Load.

Consolidate Text Data from Multiple Worksheets Using Power Query

A new worksheet will be created with the consolidated text data.

Consolidate Text Data from Multiple Worksheets Using Power Query

 


Example 2 – Use the TEXTJOIN Function

  • Create a column to get the consolidated text data from the columns.
  • Enter the in G5:
=TEXTJOIN( " , ",TRUE,C5:F5)
  • Drag the Fill Handle icon to copy the formula to the other cells, or use press Ctrl+C and Ctrl+P to copy and paste.

Using the TEXTJOIN Function

  • You will see the consolidated text data with commas as delimiters.

Using the TEXTJOIN Function


Example 3 – Consolidate Text with a Condition Using the Combination of the TEXTJOIN and FILTER Functions.

  • Insert columns to store the consolidated text data for the conditions.
  • Set the conditions: Pass and Fail to get the list of products in cells.

with a Condition Using TEXTJOIN Function

  • Enter the formula inl E5.
=TEXTJOIN(", ",TRUE,FILTER($B$5:$B$15,$C$5:$C$15=E5))
  • It will return the list of products in B5:B15 that meet the filter criteria = “Pass” in C5:C15 with commas as delimiters.

with a Condition Using TEXTJOIN Function

  • Drag down the Fill Handle to see the result in the rest of the cells.

with a Condition Using TEXTJOIN Function


Things to Remember

  • The Consolidate feature can consolidate number data only.

Download Practice Workbook

Download the practice workbook.

 

<< Go Back To Consolidation in Excel | Merge Sheets in Excel | Merge in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Osman Goni Ridwan
Osman Goni Ridwan

OSMAN GONI RIDWAN is a marine engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks. He is proficient in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, Excel, and VBA and goes beyond the basics. Armed with a B.Sc in Naval Architecture & Marine Engineering from BUET, OSMAN has transitioned into the role of a content developer. Specializing in creating technical content exclusively centered around Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo