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

Sorry Philip, that I don't know. Suggest you open a new post.
--
Gary's Student
gsnu200705


"Philip Drury" wrote:

These are the formats I have used:
Condition 1
=AND($A4<=TODAY(),$A4TODAY()-5)
Condition 2
=AND($A4<=TODAY(),$A4TODAY()-7)
Condition 3
=AND($A4<=TODAY(),$A4<" ")

Can't thank you enough for your help with this! Can I ask one more thing?
The code that turns the completed rows grey also knocks out the cell
formatting i.e. cell alignment and the fact that some cells are formatted
specifically as dates - any way to restrict the change to just the
conditional formatting?

Thanks again


"Gary''s Student" wrote:

To fix false reds, change the
Formula Is



For example if you had
=today()-B18
try something like
=(today()-B18)*(B1<"")
--
Gary''s Student
gsnu200705


"Philip Drury" wrote:

Thanks, that's great!! Any idea on how to solve the empty cells showing red
before any data is keyed?

"Gary''s Student" wrote:

Enter the following in worksheet code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("H:H"), Target) Is Nothing Then
Exit Sub
End If
If IsEmpty(Target.Value) Then
Exit Sub
End If
Target.EntireRow.ClearFormats
Target.EntireRow.Interior.ColorIndex = 15
End Sub

This uses column H as an example. If the user enters anything in a cell in
column H, the conditional formats for the entire row are cleared and the
cells in that row are shaded.


This is worksheet code and very easy to install. Just right-click that tab
name near the bottom of the Excel window. Then select View Code. This
brings up the VBA window. Just paste the stuff in and close the VBA window.
--
Gary''s Student
gsnu200705


"Philip Drury" wrote:

Have a spreadsheet that is being used to record customer enquiries, have used
conditional formatting to change the colour of the row if the enquiry goes
over a set amount of days - however, have been asked to change the
spreadsheet so that when the user enters a completion date in the relevant
cell, the row will turn grey and the conditional formatting ignored. The
conditional formatting is set that if the enquiry is within 5 days of todays
date the row is green, if it is between 5 & 7 the row is amber and then it
turns red if the enquiry date is over 7 days - (the downside to this is that
any rows without any data entered are red all the time!) Conditional
formatting will only allow 3 conditions so I am at a loss how to make the row
turn grey when the user enters a completion date?
Can anyone help? - I'm getting desperate!!

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
sorting a range with conditional formatting renie Excel Worksheet Functions 2 June 2nd 06 10:43 PM
conditional formatting glitches Kat Excel Discussion (Misc queries) 2 May 26th 06 08:16 PM
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
conditional formatting Rich Excel Discussion (Misc queries) 2 April 1st 06 10:27 AM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM


All times are GMT +1. The time now is 04:31 AM.

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"