combine multiple cells but with differing amounts of data in them

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,212
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,
I've got a bit of a problem not sure how to fix,

I need to combine the data from cells D,E,F,G & H into cell C
now this would be easy but I want a comer space ", " between each piece of data, again, would be easy but some row only have one cell with data others have all 5, so if I use the =D1&", "&E1&so on formula in get "Dave,,,,," for example
is there a way to do this so if the cells are empty I don't get lots of comers next to each other?

thanks

Tony
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Excellent, thank you, I was trying to do an if but mine was getting way out of hand this is a lot better, thank you :-)
 
Upvote 0
You're welcome. You may need to modify if the first column could be empty, but data in other columns.
My formula will return ", me" if Joe isn't there
 
Upvote 0

Forum statistics

Threads
1,225,563
Messages
6,185,701
Members
453,315
Latest member
funktgf

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