ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can Text Function change output text color? (https://www.excelbanter.com/excel-discussion-misc-queries/214992-can-text-function-change-output-text-color.html)

epiekarc

Can Text Function change output text color?
 
Hello,

The folowing forumal is used in part of a CONCATENATE function, and
everything works great, except the code below doesn't make the text red.

=TEXT(VLOOKUP(vUtility_Company,Table4,7,FALSE),"[<=9999999][Red]###-####;[Red](###) ###-####")

Any ideas how to get the text red only in the portion above and not the
whole CONCATENATE statement?

Ron Rosenfeld

Can Text Function change output text color?
 
On Tue, 30 Dec 2008 18:28:00 -0800, epiekarc
wrote:

Hello,

The folowing forumal is used in part of a CONCATENATE function, and
everything works great, except the code below doesn't make the text red.

=TEXT(VLOOKUP(vUtility_Company,Table4,7,FALSE), "[<=9999999][Red]###-####;[Red](###) ###-####")

Any ideas how to get the text red only in the portion above and not the
whole CONCATENATE statement?


You will need to execute a VBA Macro which
does the concatenation
writes the text string to the cell
then formats the particular portion in accordance with your formatting
rules.

Differential formatting, of the type you describe, can only be done on a text
string.
--ron


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

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