• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

How to Combine a Range of Cells using CONCATENATE in Excel

0 Comments

Combining values from a range of cells with a comma in Excel can be achieved through various methods. Let’s explore five different approaches:

How to Combine a Range of Cells with a Comma in Excel

1. Using CONCATENATE and TRANSPOSE:

In cell B8 (edit using F2), enter the following formula without pressing Enter:

=CONCATENATE(TRANSPOSE(A1:A5)&” “)

Select the entire inside portion of the CONCATENATE function and press F9 to convert it into an array.

Remove the curly brackets from the start and end of the array.

Finally, press Enter to combine the values into a single cell.CONCATENATE 1

2. Fill Justify Option:

Increase the width of the column containing the text.

Select all the cells to be merged.

Go to the Home tab, click on Editing, and select Fill ➜ Justify.

This will merge the text from all the cells into the first cell of the selection.CONCATENATE 2

3. TEXTJOIN Function:

If you have Excel 2016 or Office 365, you can use the TEXTJOIN function.

The syntax is: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)

For example, to combine the values from range A1:A5 with a space delimiter, ignoring blank cells:

=TEXTJOIN(” “, TRUE, A1:A5)CONCATENATE 3

4. Power Query:

Select the range of cells and click on “From table” in the Data tab.CONCATENATE 4

In the Power Query editor, select the column and go to the Transform tab.CONCATENATE 5

Click on Table ➜ Transpose to transform the columns into rows.CONCATENATE 6

Select all the columns, right-click, and choose “Merge”.CONCATENATE 7

Set the separator as a space and name the column.

How to Combine a Range of Cells using CONCATENATE in Excel

How to Combine a Range of Cells using CONCATENATE in Excel

Click OK and then Close & Load to get the combined text in a new worksheet.

5. VBA Code:

If you prefer using a macro code, you can use the following VBA code.

Select the range of cells and run the code. It will combine the text into a single cell.

Sub combineText()

    Dim rng As Range

    Dim i As String

    For Each rng In Selection

        i = i & rng & ” “

    Next rng

    Range(“B1”).Value = Trim(i)

End Sub

Specify the desired location in the code where you want to combine the text.

Each method has its own advantages, so choose the one that suits your needs. Try them out and let me know your favorite method that worked for you. Don’t forget to share this post with your friends who might find it helpful.

Rate this post
21
243 Views
How to Combine Cells with a Comma in ExcelPrevHow to Combine Cells with a Comma in ExcelMay 22, 2023
How to Concatenate with a Line Break in ExcelMay 22, 2023How to Concatenate with a Line Break in ExcelNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years
    Rated 5.00 out of 5
    $47.00
  • Avast Premium Security 2021 10 Devices 1 Year Global Avast Premium Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $28.00
  • Avast Ultimate Suite 2021 3 Years 10 Devices Global Avast Ultimate Suite 2021 3 Years 10 Devices Global
    Rated 5.00 out of 5
    $90.00
  • Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
Products
  • Windows 10 Pro Key Global Windows 10 Pro Key Global
    Rated 4.74 out of 5
    $6.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • Windows Server2008 R2 Remote Desktop Services user connections (20)cal Windows Server2008 R2 Remote Desktop Services user connections (20)cal $29.00
  • Kaspersky Premium - 1 Device 1 Year - GLOBAL Kaspersky Premium - 1 Device 1 Year - GLOBAL $37.00
  • Avast Ultimate Suite 2021 3 Years 10 Devices Global Avast Ultimate Suite 2021 3 Years 10 Devices Global
    Rated 5.00 out of 5
    $90.00
  • Microsoft Visio Professional 2021 Key 1PC Microsoft Visio Professional 2021 Key 1PC $13.00
  • Windows 11 Pro Product Activation Key Windows 11 Pro Product Activation Key
    Rated 5.00 out of 5
    $6.00
  • Windows 10 Home OEM Key Global Windows 10 Home OEM Key Global
    Rated 4.80 out of 5
    $6.00
  • Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 4.72 out of 5
    $20.00
  • Avast Premium Security 2021 Avast Premium Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.