Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Conditional Formatting A Date

Hi

I have a very large worksheet (65 Columns x 5000 plus Rows) where one column
is
formatted in the UK Date format (dd-mm-yy) and is a manual entry.

I am required to turn the date red when it is 28 days or less from today's
date (if you were looking at being able to do it this way
=IF(TODAY()+28<=cell date,Red,black))

However, I am not allowed to add any more columns.

Is there a way of doing this without having to do each row individually with
either ...

Conditional Formatting
Formulae
Macro
Visual Basic

Many thanks in advance

--
Peter W


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Conditional Formatting A Date

Hi, Peter-
I got results with conditional formatting using this formula:
=AND(A1-TODAY()<=28,TODAY()<A1)

It turns the cell red if the cell date is in the future and 28 or
less days from now. The dd/mm/yy format is not relevant if the date is
a Microsoft serial date.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Conditional Formatting A Date

No extra columns needed.

Select the cells and FormatCF

Formula is: =A1<=TODAY()+28


Gord Dibben MS Excel MVP

On Sun, 8 Jul 2007 18:45:32 +0100, "Peter W Soady \(UK\)"
wrote:

Hi

I have a very large worksheet (65 Columns x 5000 plus Rows) where one column
is
formatted in the UK Date format (dd-mm-yy) and is a manual entry.

I am required to turn the date red when it is 28 days or less from today's
date (if you were looking at being able to do it this way
=IF(TODAY()+28<=cell date,Red,black))

However, I am not allowed to add any more columns.

Is there a way of doing this without having to do each row individually with
either ...

Conditional Formatting
Formulae
Macro
Visual Basic

Many thanks in advance


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Conditional Formatting A Date

Many thanks guys.

Your help is appreciated.

Peter

Hi

I have a very large worksheet (65 Columns x 5000 plus Rows) where one
column is
formatted in the UK Date format (dd-mm-yy) and is a manual entry.

I am required to turn the date red when it is 28 days or less from today's
date (if you were looking at being able to do it this way
=IF(TODAY()+28<=cell date,Red,black))

However, I am not allowed to add any more columns.

Is there a way of doing this without having to do each row individually
with either ...

Conditional Formatting
Formulae
Macro
Visual Basic

Many thanks in advance

--
Peter W



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional Formatting A Date

I have a similar project I am working on but have one more criteria
that has to be evaluated before the conditional formatting is
applied. In my scenario I have expiry dates for products. I have
three ranges of dates that I have created conditional formatting for:

=AND(F29-TODAY()=0,F29-TODAY()<=30)
=AND(F29-TODAY()=0,F29-TODAY()<=60)
=AND(F29-TODAY()=0,F29-TODAY()<=90)

Only problem is that I have one product that is an exception. Lets
call this product "Chews" which is listed in a separate column from
the expiry date. Is there a way for me to have the 3rd condition? In
english I would like the statement to be the following:

If Expiry Date is less than 60 days and Product = Chews OR Expiry Date
is less than 30 days

Any help would be greatly appreciated. Thanks.



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 for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
date conditional formatting? Frank[_2_] New Users to Excel 3 April 12th 07 05:17 PM
conditional DATE formatting? LTUser54 Excel Discussion (Misc queries) 2 May 18th 06 09:24 PM
conditional formatting date shane561 Excel Discussion (Misc queries) 2 December 27th 05 01:38 AM
Conditional Formatting, date. DissentChick Excel Worksheet Functions 2 July 20th 05 03:37 PM


All times are GMT +1. The time now is 07:27 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"