So I have six columns containing email addresses of different people connected to the respective rows. Many of the cells are empty. I need to combine them into a single cell for the user to copy-and-paste them all into the cc: list of an email message.
So I drafted the following to concatenate them with a semi-colon & space between each. Then, if it ends in a semi-colon & space because of the final column being null, the semi-colon & space are trimmed off.
It works, but is big and inelegant. Anyone have any better thoughts?
=IF(RIGHT(CONCATENATE(IF(A3<>"",CONCATENATE(A3,"; "),""),IF(B3<>"",CONCATENATE(B3,"; "),""),IF(C3<>"",CONCATENATE(C3,"; "),""),IF(D3<>"",CONCATENATE(D3,"; "),""),IF(E3<>"",CONCATENATE(E3,"; "),""),IF(F3<>"",F3,"")),2)="; ",LEFT((CONCATENATE(IF(A3<>"",CONCATENATE(A3,"; "),""),IF(B3<>"",CONCATENATE(B3,"; "),""),IF(C3<>"",CONCATENATE(C3,"; "),""),IF(D3<>"",CONCATENATE(D3,"; "),""),IF(E3<>"",CONCATENATE(E3,"; "),""),IF(F3<>"",F3,""))),LEN(CONCATENATE(IF(A3<>"",CONCATENATE(A3,"; "),""),IF(B3<>"",CONCATENATE(B3,"; "),""),IF(C3<>"",CONCATENATE(C3,"; "),""),IF(D3<>"",CONCATENATE(D3,"; "),""),IF(E3<>"",CONCATENATE(E3,"; "),""),IF(F3<>"",F3,"")))-2),CONCATENATE(IF(A3<>"",CONCATENATE(A3,"; "),""),IF(B3<>"",CONCATENATE(B3,"; "),""),IF(C3<>"",CONCATENATE(C3,"; "),""),IF(D3<>"",CONCATENATE(D3,"; "),""),IF(E3<>"",CONCATENATE(E3,"; "),""),IF(F3<>"",F3,"")))</p>
Thanks.
Bookmarks