ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional formatting with formula (https://www.excelbanter.com/excel-discussion-misc-queries/257488-conditional-formatting-formula.html)

cclark

Conditional formatting with formula
 
What formula would I use if I wanted to format a cell (say in red) if the
date entered in that cell is 30 days or less from today's date?

Ron@Buy

Conditional formatting with formula
 
Try:
=AND(A10<TODAY(),A10=TODAY()-30)


"CClark" wrote:

What formula would I use if I wanted to format a cell (say in red) if the
date entered in that cell is 30 days or less from today's date?


Pete_UK

Conditional formatting with formula
 
Suppose that cell is A2, then you would use this formula:

=AND(A2TODAY(),A2<TODAY()+31)

So if A2 is after today AND less than 31 days hence, then the CF will
be activated - I think that is what you meant.

Hope this helps.

Pete

On Feb 26, 6:57*pm, CClark wrote:
What formula would I use if I wanted to format a cell (say in red) if the
date entered in that cell is 30 days or less from today's date?



KC hotmail com>

Conditional formatting with formula
 
If the cell you're on is, say, A1:
=A1<=TODAY()+30
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"CClark" wrote:

What formula would I use if I wanted to format a cell (say in red) if the
date entered in that cell is 30 days or less from today's date?



All times are GMT +1. The time now is 07:17 PM.

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