Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Change the color of a cell

I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color when
its 15 months from todays date.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,494
Default Change the color of a cell

put a date in d1 and then create the conditional formatting formula and
criteria and see if it does what you want.

=(today())DATE(YEAR(D1),MONTH(D1) +15,DAY(D1))

--

Gary Keramidas
Excel 2003


"Lou825" wrote in message
...
I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color
when
its 15 months from todays date.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Change the color of a cell

If you have NOW() / Date-Time in B5, can use external cell A7 to have: 15
=MONTH(B5)+$A$7





"Lou825" wrote:

I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color when
its 15 months from todays date.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Change the color of a cell

as if b2 is first cell of dates, you open conditional formatting Dialogbox
and fill formulas as followed
=$B2=DATE(YEAR(TODAY())+1,MONTH(TODAY())+3,DAY(TOD AY()))
--

--
Excel MVP(KOREA)


"Lou825" wrote:

I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color when
its 15 months from todays date.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Change the color of a cell

guesse mine is not exactly what you asked, but an idea if flipping purposes /
values.. thanks


"MrDave" wrote:

If you have NOW() / Date-Time in B5, can use external cell A7 to have: 15
=MONTH(B5)+$A$7





"Lou825" wrote:

I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color when
its 15 months from todays date.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Change the color of a cell

Thank you for helping me but I just cant get it to work. If I put 25AUG2010
in b2, thats with in 15 months from today I want the cell to change its
color. I petty much need to be notified when we are 15 months away from the
date I put in the cell.

"MiHee Jang" wrote:

as if b2 is first cell of dates, you open conditional formatting Dialogbox
and fill formulas as followed
=$B2=DATE(YEAR(TODAY())+1,MONTH(TODAY())+3,DAY(TOD AY()))
--

--
Excel MVP(KOREA)


"Lou825" wrote:

I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color when
its 15 months from todays date.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Change the color of a cell

sorry, correction on macro, and:

to enter macro: right click on your sheet tab, bottom left, click on View
Code
paste item in window.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count 1 Then Exit Sub
If Target.Row < 20 Then Exit Sub 'allows skip some rows
If Me.Cells(.Row, "A").Value = "." Then Exit Sub 'allows skip some
rows

If Not Intersect(Me.Range("A:A"), .Cells) Is Nothing Then
Application.EnableEvents = False
With Me.Cells(.Row, "B:B") 'Destination
.NumberFormat = "mm"
.Value = Now
End With
Application.EnableEvents = True
End With
End Sub


"Lou825" wrote:

Thank you for helping me but I just cant get it to work. If I put 25AUG2010
in b2, thats with in 15 months from today I want the cell to change its
color. I petty much need to be notified when we are 15 months away from the
date I put in the cell.

"MiHee Jang" wrote:

as if b2 is first cell of dates, you open conditional formatting Dialogbox
and fill formulas as followed
=$B2=DATE(YEAR(TODAY())+1,MONTH(TODAY())+3,DAY(TOD AY()))
--

--
Excel MVP(KOREA)


"Lou825" wrote:

I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color when
its 15 months from todays date.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Change the color of a cell

you need to use a date that is recognized by excel. enter date as:
Cntrl ; (key stroke is: Control & semi-colon)
for time you add 2 spaces and enter: Cntrl Shift ;
which is the same as entering NOW(), =NOW() will not exactly work,

there is a macro for NOW() as follows:

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count 1 Then Exit Sub
If Target.Row < toprowID Then Exit Sub 'allows skip some rows
If Me.Cells(.Row, "A").Value = "." Then Exit Sub 'allows skip some
rows


If Not Intersect(Me.Range("A:A"), .Cells) Is Nothing Then
Application.EnableEvents = False
With Me.Cells(.Row, "B:B") 'Destination
.NumberFormat = "mm"
.Value = Now
End With
Application.EnableEvents = True
End If
End With
End Sub



"Lou825" wrote:

Thank you for helping me but I just cant get it to work. If I put 25AUG2010
in b2, thats with in 15 months from today I want the cell to change its
color. I petty much need to be notified when we are 15 months away from the
date I put in the cell.

"MiHee Jang" wrote:

as if b2 is first cell of dates, you open conditional formatting Dialogbox
and fill formulas as followed
=$B2=DATE(YEAR(TODAY())+1,MONTH(TODAY())+3,DAY(TOD AY()))
--

--
Excel MVP(KOREA)


"Lou825" wrote:

I have Excel 2003 and I am having a problem with conditional formatting. I
have a sheet that I put dates in cells and need the cell to change color when
its 15 months from todays 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
Cannot change font color or cell color Bezell Excel Discussion (Misc queries) 2 January 30th 09 06:12 PM
Change tab color based on current color of a cell MarkT Excel Discussion (Misc queries) 0 May 22nd 08 05:46 PM
Can you change the color of one cell based on the color of another andoscott Excel Discussion (Misc queries) 4 May 4th 07 04:02 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
How to change the default Border, Font Color, and Cell Color Elijah Excel Discussion (Misc queries) 3 November 2nd 05 11:52 PM


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