Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 345
Default 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?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default 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?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Formula? Doug Excel Worksheet Functions 5 August 6th 09 04:12 AM
conditional formatting using a formula CAT Excel Worksheet Functions 4 November 15th 08 12:09 AM
Conditional formatting in a formula Annie1904 Excel Discussion (Misc queries) 1 June 5th 08 03:14 PM
Conditional formatting as a formula tbsolms Excel Worksheet Functions 0 March 8th 07 10:49 PM
Conditional Formatting formula tankerman Excel Discussion (Misc queries) 2 December 22nd 06 05:34 PM


All times are GMT +1. The time now is 09:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"