SOLVED

Retain text formatting when using Concat or Textjoin

Copper Contributor

Is it possible to retain text format when concatenating cells?  In this example, I would like to combine cells a2, b2, and c2 retaining the italics formatting on a2.  Thanks for your help.

Screenshot 2024-04-22 at 16.41.54.png

 

3 Replies
best response confirmed by Happywithlife (Copper Contributor)
Solution

@Happywithlife 

No, it is not possible to format part of the result of a formula differently from the rest.

 

A possible workaround is to use VBA to populate E2 with a value instead of a formula and to apply the desired formatting. But it would be complicated to get this right in all possible situations.

@Happywithlife 

create html by sql:

select *,Customer||'<i>'||Revenue||'</i>' from Sheet1 

 

then copy to excel.

 

Screenshot_2024-04-23-08-52-36-234_com.mmbox.xbrowser.pro.jpg

Screenshot_2024-04-23-08-53-06-394_com.microsoft.office.excel.jpg

 

 

1 best response

Accepted Solutions
best response confirmed by Happywithlife (Copper Contributor)
Solution

@Happywithlife 

No, it is not possible to format part of the result of a formula differently from the rest.

 

A possible workaround is to use VBA to populate E2 with a value instead of a formula and to apply the desired formatting. But it would be complicated to get this right in all possible situations.

View solution in original post