ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   formating a cell with a conditional if statement (https://www.excelbanter.com/excel-programming/271616-formating-cell-conditional-if-statement.html)

Rich[_11_]

formating a cell with a conditional if statement
 
I'd like to write an if statement that would compare a
date to todays's date and if the date is before today's
date color the cell red and if after today's date color
the cell green. Any suggestions on how to write the if
statement?

Henrik Wendel

formating a cell with a conditional if statement
 
Create a defined name (Ínsert/Name/Define)

Let it refere to a formula like this Today() name it ThisDay

Then create a conditional formating saying

Cell value / Less then / =Thisday

Wendel

"Rich" skrev i meddelandet
...
I'd like to write an if statement that would compare a
date to todays's date and if the date is before today's
date color the cell red and if after today's date color
the cell green. Any suggestions on how to write the if
statement?





All times are GMT +1. The time now is 04:16 PM.

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