ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   concatenating cells with their formats (https://www.excelbanter.com/excel-worksheet-functions/31549-concatenating-cells-their-formats.html)

GDC

concatenating cells with their formats
 
If I use the concatenate function or =(cell1)&(cell2), is there a way to pick
up the formats of the original cells, e.g. underline or strikethru?

Bob Phillips

=TEXT(A1,"dd/mm/yyyy")&" "&TEXT(B1,"#,##0.00")

as an example. In other words, pass the format to the text FUNC TION FOR
EACHJ CELL.

--
HTH

Bob Phillips

"GDC" wrote in message
...
If I use the concatenate function or =(cell1)&(cell2), is there a way to

pick
up the formats of the original cells, e.g. underline or strikethru?




JE McGimpsey

not without using a VBA Event Macro.

In article ,
GDC wrote:

If I use the concatenate function or =(cell1)&(cell2), is there a way to pick
up the formats of the original cells, e.g. underline or strikethru?


Ron Rosenfeld

On Mon, 20 Jun 2005 09:51:03 -0700, GDC wrote:

If I use the concatenate function or =(cell1)&(cell2), is there a way to pick
up the formats of the original cells, e.g. underline or strikethru?


If that formatting is a result of conditional formatting, then you could use
the same conditional format formula within your concatenate formula.
Otherwise, you would have to use a Visual Basic macro.


--ron


All times are GMT +1. The time now is 08:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com