ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Colour Using if Statement (https://www.excelbanter.com/excel-worksheet-functions/207357-colour-using-if-statement.html)

Martin

Colour Using if Statement
 
Hello, I just posted this question but it wasnt quite correct, here is the
new question.

I have the following calculation in a cell:

=IF(qryData!CI37 = 0, TREND(D28:D34,$B$28:$B$34,$B$35,1), qryData!CI37)

This is to use the trend function if the cell value is 0, this works fine.
What I would like to do however is to colour the font in red if the trend
function is being used but leave as black if there is actual data there i.e.
qryData!CI37 is not equal to 0.

I have tried the conditional formatting but it doesnt seem to work

Many thanks,

Martin

Mike H

Colour Using if Statement
 
Thers' no need to post it again you have an answer in your first thread

"Martin" wrote:

Hello, I just posted this question but it wasnt quite correct, here is the
new question.

I have the following calculation in a cell:

=IF(qryData!CI37 = 0, TREND(D28:D34,$B$28:$B$34,$B$35,1), qryData!CI37)

This is to use the trend function if the cell value is 0, this works fine.
What I would like to do however is to colour the font in red if the trend
function is being used but leave as black if there is actual data there i.e.
qryData!CI37 is not equal to 0.

I have tried the conditional formatting but it doesnt seem to work

Many thanks,

Martin



All times are GMT +1. The time now is 10:31 PM.

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