ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   concatenation (https://www.excelbanter.com/new-users-excel/226680-concatenation.html)

Charles Eaves

concatenation
 
In Excel 2007, I have 2 columns, A & B.
I am referencing cells A39 and F39.
A39 is a text cell.
F39 is a red colored number cell.
I used the formula: =A39&" "&F39.
I get the result: Bathtubs -154 (the -154 value turned from red to
black).
That is great but how do you conditional format the -154 value to be:
Green is positive and red for negative.
I don't have any trouble if the cell just has a number in it but i can't get
conditional formatting to work when doing a concatanation.
Thanks



Roger Govier[_3_]

concatenation
 
Hi Charles

With CF, the whole cell can only take one colour.
So, you could have "Bathtubs -154" all in Red, or "Bathtubs 350" all in
Green.
This you would achieve by setting the CF as
=F39=0 Format Green
=F39<0 Format Red

Otherwise you will need to avoid concatenation, and use 2 cells with the
cell holding A39 formatted Right, and the cell holding F39 formatted Left
with an Indent of 1

--
Regards
Roger Govier

"Charles Eaves" wrote in message
...
In Excel 2007, I have 2 columns, A & B.
I am referencing cells A39 and F39.
A39 is a text cell.
F39 is a red colored number cell.
I used the formula: =A39&" "&F39.
I get the result: Bathtubs -154 (the -154 value turned from red to
black).
That is great but how do you conditional format the -154 value to be:
Green is positive and red for negative.
I don't have any trouble if the cell just has a number in it but i can't
get conditional formatting to work when doing a concatanation.
Thanks




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

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