Concatenation and skipping blank cells
Are all the values in A1:F1 single words--no spaces?
If yes:
=SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1&" "&F1)," ",", ")
soma104 wrote:
I'm trying to set up a formula which will contactenate the contents of 6 or 7
cells. I would like to be able to skip any blank values.
Using the following formula: =a1&", "&b1&", "c1&", "&d1&", "&e1&", "&f1
Assuming cell b1, d1, and e1 were left blank, I would get the following:
Ann, , Cathy, , , Frank
What I want to see is: Ann, Cathy, Frank
Can anyone give me any ideas on how to go about this?
Soma104
--
Dave Peterson
|