Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default traffic light formula

I am trying to create a traffic light formula in excel 2003. I want a cell B2
at the beginning of my spreadsheet to be green, if the date in cell K2 is a
minimum of 3 months away, amber if it is less than 3 months away and red if
it equal to or the expiry date.

Hoping you can help!

Vikki
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default traffic light formula

Hi,
use conditional formating entering the formula as follow. I assume that in
K2 you have a date
=today()-K2=90 choose color amber
=today()-k2<90 choose color red

"Vikki" wrote:

I am trying to create a traffic light formula in excel 2003. I want a cell B2
at the beginning of my spreadsheet to be green, if the date in cell K2 is a
minimum of 3 months away, amber if it is less than 3 months away and red if
it equal to or the expiry date.

Hoping you can help!

Vikki

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default traffic light formula

Apply Conditonal formatting for B2 with these conditions:
=DATEDIF(TODAY(),$K$2,"m")=3 for green
=AND(DATEDIF(TODAY(),$K$2,"m")<3,TODAY()<$K$2) for amber
=TODAY()=$K$2 for red.

Regards,
Stefi




€˛Vikki€¯ ezt Ć*rta:

I am trying to create a traffic light formula in excel 2003. I want a cell B2
at the beginning of my spreadsheet to be green, if the date in cell K2 is a
minimum of 3 months away, amber if it is less than 3 months away and red if
it equal to or the expiry date.

Hoping you can help!

Vikki

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default traffic light formula

As I'm sure Stefi realises, you don't need
=AND(DATEDIF(TODAY(),$K$2,"m")<3,TODAY()<$K$2)
but can cope with just
=TODAY()<$K$2
as the
=DATEDIF(TODAY(),$K$2,"m")=3
cases have already been trapped out.

Similarly the
=TODAY()=$K$2
test isn't needed, as the
=TODAY()<$K$2
cases have already been trapped out.

CF doesn't go on to a later test if an earlier condition has already been
satisfied.
--
David Biddulph

"Stefi" wrote in message
...
Apply Conditonal formatting for B2 with these conditions:
=DATEDIF(TODAY(),$K$2,"m")=3 for green
=AND(DATEDIF(TODAY(),$K$2,"m")<3,TODAY()<$K$2) for amber
=TODAY()=$K$2 for red.

Regards,
Stefi




"Vikki" ezt ķrta:

I am trying to create a traffic light formula in excel 2003. I want a
cell B2
at the beginning of my spreadsheet to be green, if the date in cell K2 is
a
minimum of 3 months away, amber if it is less than 3 months away and red
if
it equal to or the expiry date.

Hoping you can help!

Vikki



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
traffic light in excel Lumar Excel Discussion (Misc queries) 4 January 21st 10 03:02 AM
traffic light based on 3 different conditions [email protected] Excel Worksheet Functions 6 January 15th 09 05:45 PM
I neen a chart background to represent traffic light colors... OraPronobis Charts and Charting in Excel 2 September 28th 08 03:05 PM
Traffic light problem jackrobyn1 Charts and Charting in Excel 3 June 28th 08 12:32 PM
Traffic Light Filter On Dates JPG Excel Discussion (Misc queries) 3 April 17th 06 12:32 AM


All times are GMT +1. The time now is 12:36 AM.

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

About Us

"It's about Microsoft Excel"