ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Function Excel:If a Dateactual date create a RED alert in a cel? (https://www.excelbanter.com/excel-programming/390610-function-excel-if-date-actual-date-create-red-alert-cel.html)

Claudio Nacif

Function Excel:If a Dateactual date create a RED alert in a cel?
 
How do I can create a function that:

IF a Date Actual Date Then
Show a Red Cel
Else
Show a blue Cel
If else

Joerg

Function Excel:If a Dateactual date create a RED alert in a cel?
 
You can't use a function (since functions cannot change formats) and you
don't need one: Use Conditional Formatting instead.
To turn cell A1 red whenever the value is actual select Conditional
Formatting from the Format menu, then for condition1 select "formula is",
then type in following formula: =A1NOW()
Choose your format for this condition (red color cell shading) and push OK.
That's it! If you want the cell to be blue in all other cases, just format
it as normal.

You can copy this cell as needed. The conditional formatting will be copied
along.

Cheers,

Joerg Mochikun



"Claudio Nacif" <Claudio wrote in message
...
How do I can create a function that:

IF a Date Actual Date Then
Show a Red Cel
Else
Show a blue Cel
If else





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

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