ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Format text in one cell based on value in another cell (https://www.excelbanter.com/excel-worksheet-functions/32191-format-text-one-cell-based-value-another-cell.html)

Liz C

Format text in one cell based on value in another cell
 
Does anyone know the expression to format text, say in cell A5, to blue if
the value of cell A4=0 and to red if the value of cell A4<0? I know how to
do conditional formatting on cell A4, based on the value of cell A4, but how
do you format one cell based on the value of another?

Thanks in advance for your help!

Liz

Dave R.

You're on your way. Just use the "formula is.." option in conditional
formatting of A5 and plug in
=A4<0, choose color, then A4=0 and choose color.



"Liz C" wrote in message
...
Does anyone know the expression to format text, say in cell A5, to blue if
the value of cell A4=0 and to red if the value of cell A4<0? I know how

to
do conditional formatting on cell A4, based on the value of cell A4, but

how
do you format one cell based on the value of another?

Thanks in advance for your help!

Liz




Liz C

Great! Thanks, Dave!

"Dave R." wrote:

You're on your way. Just use the "formula is.." option in conditional
formatting of A5 and plug in
=A4<0, choose color, then A4=0 and choose color.



"Liz C" wrote in message
...
Does anyone know the expression to format text, say in cell A5, to blue if
the value of cell A4=0 and to red if the value of cell A4<0? I know how

to
do conditional formatting on cell A4, based on the value of cell A4, but

how
do you format one cell based on the value of another?

Thanks in advance for your help!

Liz






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

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