Excel Formula: Combine cells with comma
Here this tutorial provides some formulas to join multiple cells into one cell with comma as separator as below screenshot shown, and also explains how the formulas work in Excel.
Formula 1 Combine cells with comma by using &
Merging Cells in Excel using C#. The heading of each table is the name of the table, but I am unable to merge the columns for heading. The Merge Cells add-in is used for merging various types of cells in Excel. This allows you to merges the individual cells and also combines data from entire rows or columns. Please Note: You need to download a merge cell add-ins for third-party sites available online. Search in Google for add-ins.
How to combine two columns in 3 simple steps Download and install the Ultimate Suite. Select all cells from 2 or more columns that you want to merge, go to the Ablebits.com Data tab Merge group, and click Merge Cells Merge Columns into One. In the Merge Cells dialog box, select the following options. Excel’s “Merge Cells” function works like “Merge & Center” – without the addition of centering. Select the cells you want to combine and then click “Merge Cells.” The text in the original cell will not be automatically centered, and will remain left or right-justified.
Generic formula:
text_1&','&text_2&','&…&',' &text_n |
Arguments
Text_1, text_2, text_n: the cells or text strings you want to combine with comma. |
![Columns Columns](/uploads/1/3/7/4/137499942/667968604.png)
How this formula work
For instance, you want to combine the cells of each row across column B, column C, column D and column E into one cell with commas, please use below formula in a blank cell.
=B3&','&C3&','&D3&','&E3 |
Press Enter key, then the cells are combined with comma separated.
Discord on browser.
Discord on browser.
Explanation
& : using this connector to combine cells and commas.
Remark
If you want to directly use texts instead of cell references in the formula, please embrace the text strings with double quotation marks.
Formula 2 Combine cells with comma by using CONCATENATE function
Generic formula:
CONCATENATE(text_1,',',text_2,',',…',',text_n) |
Arguments
Text_1, text_2, text_n: the cells or text strings you want to combine with comma. |
How this formula work
For instance, you want to combine the cell B3, C3, D3 and E3 into one cell with commas, please use below formula in a blank cell.
=CONCATENATE(B3,',',C3,',',D3,',',E3) |
Press Enter key, then the cells are combined with comma separated.
Explanation
CONCATENATE function: CONCATENATE function is used to join text together.
Remark
If you want to directly use texts instead of cell references in the formula, please enclose the text strings with double quotation marks.
If there are blank cells which are used to be combined, there will be extra comma in the combined cell by using above 2 formulas (& and CONCATENATE) as below screenshot shown.
In this case, please choose formula 3.
Formula 3 Combine cells with comma by combining SUBSTITUTE and TRIM functions
Generic formula:
=SUBSTITUTE(TRIM(text_1&' '&text_2&' '&…&' '&text_n),' ',', ') |
Arguments
Text_1, text_2, text_n: the cells or text strings you want to combine with comma. |
How this formula work
For instance, you want to combine the cell B3, C3, D3 and E3 into one cell with commas, please use below formula in a blank cell.
Free malware and antivirus downloads. Fully loaded and refreshingly simple Our free antivirus software just got even better. It now includes real-time security updates, scans for malware, ransomware, and performance issues, and even catches malicious downloads before they reach your PC. You also get an all-new, refreshingly simple design that shows you exactly how you’re protected. TotalAV Antivirus is a free to use antivirus packed with all the essential features to find & remove malware keeping you safe. Rapid install speed avoiding interruptions Keep gaming, image and video editing and other resource-intensive activities Powerful on-demand protection packed into a light solution. Free Malware Scanner and Removal Tool. Find and remove malware and other threats. Avast Free Antivirus offers free, real-time anti-malware protection against current and future infections. Awarded “Product of the Year 2018” by AV-Comparatives. DOWNLOAD FREE ANTI-MALWARE. Free antivirus is your first step to 3D online protection Award-winning free antivirus that’s light and powerful. Join over 435 million people who trust Avast to keep them safe. Download Malwarebytes for your computer or mobile device. Whether you need cybersecurity for your home or your business, there's a version of Malwarebytes for you. Try our free virus scan and malware removal tool, then learn how Malwarebytes Premium can protect you from ransomwar.
=SUBSTITUTE(TRIM(B3&' '&C3&' '&D3&' '&E3),' ',', ') |
Press Enter key, then drag the fill handle down to apply this formula to the cells you need to combine, then the cells are combined with comma separated.
Explanation
TRIM function: the TRIM function removes all extra spaces from the text string. Here TRIM(B3&' '&C3&' '&D3&' '&E3) will combine cells with spaces and then clear the extra spaces, this formula will stop the trailing or leading comma.
SUBSTITUTE function: the SUBSTITUTE function is used to replace text with the specific text. Here =SUBSTITUTE(TRIM(B3&' '&C3&' '&D3&' '&E3),' ',', ') will replace space with comma and space in the combined text string (the combination of B3, C3, D3 and E3).
Remark
If you want to directly use texts instead of cell references in the formula, please enclose text strings with double quotation marks.
Combine cells with other separators
If you want to use other separators to replace commas, change “,” in the formulas to other separators. For instance, combine with plus symbol.
![Excel Excel](/uploads/1/3/7/4/137499942/748676902.jpg)
=SUBSTITUTE(TRIM(B6&' '&C6&' '&D6&' '&E6),' ','+')
Or
=CONCATENATE(B3,'+',C3,'+',D3,'+',E3)
Or
=B3&'+'&C3&'+'&D3&'+'&E3
Or
=CONCATENATE(B3,'+',C3,'+',D3,'+',E3)
Or
=B3&'+'&C3&'+'&D3&'+'&E3
Sample File
Relative Formulas
- Check if a cell contains a specific text
To check if a cell contains some texts in range A but does not contain the texts in range B, you can use an array formula which combines the COUNT, SEARCH and AND function in Excel - Check if a cell contains one of several values but exclude other values
This tutorial will provide a formula to quickly handle the task that check if a cell contains one of things but excluding other values in Excel and explain the arguments of the formula. - Check if cell contains one of things
Supposing in Excel, there is a list of values in column E, you want to check if the cells in column B contain all of the values in column E, and return TRUE or FALSE. - Check if cell contains number
Sometimes, you may want to check if a cell contains numeric characters. This tutorial provides a formula which will return TRUE if the cell contains number, FALSE if cell does not contain number.
The Best Office Productivity Tools
Merge Columns Excel Mac
Kutools for Excel - Helps You To Stand Out From Crowd
Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on..) and save 80% time for you.
- Designed for 1500 work scenarios, helps you solve 80% Excel problems.
- Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
- Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
- 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Merge Columns Excel Without Losing Data
or post as a guest, but your post won't be published automatically.
Merge Columns Excel 2010
Loading comment.. The comment will be refreshed after 00:00.