Combine Columns

Boba Fetts

New Member
Joined
Mar 31, 2020
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
I have a spreadsheet where I need to combine 9 columns. These columns contain words, not data. All 9 columns need to be combined into one column so I can upload to my CRM system. Some columns contain information, some do not and are left blank. I can combine the rows using CONCATENATE but here's the issue. I need the words separated by a comma and a space for readability. But, when I use the formula it adds a space and comma where there are cells that do not contain information. How do I write a formula so Excel just ignores the cells without data and only uses the cells with data? Right now the results look something like this:
1585684023776.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi & welcome to MrExcel
Have a look at the TEXTJOIN function.
 
Upvote 0
In addition to TEXTJOIN, you can combine the cells with Power Query setting the separator to what ever you wish, ie. a comma and a space.
 
Upvote 0
Hi & welcome to MrExcel
Have a look at the TEXTJOIN function.
Better solution (easier) but still places phantom commas where there is not text to join. Is there a way for Excel to just skip cells without text and move on to the next without placing a comma?
 
Upvote 0
What was the formula you used?
 
Upvote 0
What was the formula you used?
I used TEXTJOIN. Again the issue is getting this spreadsheet ready for upload to a CRM system. I want Excel to join the columns together but ignore empty cells all together. Most Rows have 3-4 cells with text. So only those cells should populate and be separated by a comma. Instead the formula also puts a space and comma for each empty cell. The result is messy.
 
Upvote 0
Yes, but what was the actual formula you used, not just the function?
 
Upvote 0
In that case I suspect that the "blank" cells are not actually blank, as that formula would ignore any blank cells.

do they contain formulae? if so what?
 
Upvote 0
In that case I suspect that the "blank" cells are not actually blank, as that formula would ignore any blank cells

They're completely empty, no values, this was data entry. Thank you for your efforts.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top