Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default HOW TO INSERT "CONDITION" IN DATES BY EXCEL

I wanna insert a formula with dates in which I need 3 different colours. Eg.
until 30 days ago, the sentence has to be red, 31 to 45 days ago, the
sentence has to be yellow and before 45 days ago, e.i. 46 days ago or more,
the sentence has to be blue.
Thanks.
Alves
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 623
Default HOW TO INSERT "CONDITION" IN DATES BY EXCEL

You want conditional formatting (FormatConditional Formatting...)

You can set up to three conditions, so you would use something like:

=today()-a1<=30 set color to red
etc.

--
Regards,
Fred


"Excel" wrote in message
...
I wanna insert a formula with dates in which I need 3 different colours. Eg.
until 30 days ago, the sentence has to be red, 31 to 45 days ago, the
sentence has to be yellow and before 45 days ago, e.i. 46 days ago or more,
the sentence has to be blue.
Thanks.
Alves



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default HOW TO INSERT "CONDITION" IN DATES BY EXCEL

I would suggest using conditional formating and use a formula with three
conditions in this order if the date is in A1:

=$A$1<TODAY()-45 set fill color blue
=$A$1<TODAY()-30 set fill color yellow
=$A$1<=TODAY() set fill color red

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Excel" wrote:

I wanna insert a formula with dates in which I need 3 different colours. Eg.
until 30 days ago, the sentence has to be red, 31 to 45 days ago, the
sentence has to be yellow and before 45 days ago, e.i. 46 days ago or more,
the sentence has to be blue.
Thanks.
Alves

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Lost "File Menu" - now it's "Edit / View / Insert.." but no "F daves Excel Discussion (Misc queries) 3 April 24th 07 04:52 AM
How do I use the "SUMIF" function using dates as a condition Brit. Excel Worksheet Functions 2 January 13th 06 01:32 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM
Adding "New" "Insert" "Delete" into a workbook to change from data 1 to data 2 etc Bob Reynolds[_2_] Excel Programming 0 March 4th 04 08:52 PM


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