ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Colouring text in VLOOKUP formula (https://www.excelbanter.com/excel-worksheet-functions/202096-colouring-text-vlookup-formula.html)

Trevor Williams

Colouring text in VLOOKUP formula
 
Hi all, simple question (I think)...

I have a text cell made up of a vlookup and some other text. What I want to
do is colour the 'non-looked up' text a different colour.

Here's my formula:
=VLOOKUP(AcctNo,AcctList,2,FALSE) & " | some other text"

Any ideas gratefully received.

Trevor Williams

Gord Dibben

Colouring text in VLOOKUP formula
 
Cannot be done with a formula.

Formulas return values and parts of those values cannot be formatted within
the formula.


Gord Dibben MS Excel MVP

On Wed, 10 Sep 2008 14:56:03 -0700, Trevor Williams
wrote:

Hi all, simple question (I think)...

I have a text cell made up of a vlookup and some other text. What I want to
do is colour the 'non-looked up' text a different colour.

Here's my formula:
=VLOOKUP(AcctNo,AcctList,2,FALSE) & " | some other text"

Any ideas gratefully received.

Trevor Williams



Trevor Williams

Colouring text in VLOOKUP formula
 
Thanks Gord, just as I suspected...

"Gord Dibben" wrote:

Cannot be done with a formula.

Formulas return values and parts of those values cannot be formatted within
the formula.


Gord Dibben MS Excel MVP

On Wed, 10 Sep 2008 14:56:03 -0700, Trevor Williams
wrote:

Hi all, simple question (I think)...

I have a text cell made up of a vlookup and some other text. What I want to
do is colour the 'non-looked up' text a different colour.

Here's my formula:
=VLOOKUP(AcctNo,AcctList,2,FALSE) & " | some other text"

Any ideas gratefully received.

Trevor Williams





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

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