Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default CONDITIONAL FORMATTING- DATES

Hi all,

I am setting up conditional formatting to change the interior colour
for a row to red when a date passes. This I can do but I cannot figure
out how to not have the cells change when No date is input.

Any help appreciated

Thanks x

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default CONDITIONAL FORMATTING- DATES

use an AND formula

=AND(A1<"",A1<TODAY())

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Doo0592" wrote in message
ups.com...
Hi all,

I am setting up conditional formatting to change the interior colour
for a row to red when a date passes. This I can do but I cannot figure
out how to not have the cells change when No date is input.

Any help appreciated

Thanks x



  #3   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CONDITIONAL FORMATTING- DATES

.. how to not have the cells change when No date is input.

Just set the condition to also check the date col for blank cells using an
AND(...). Eg something like this as condition 1:
Cond1: =AND($A1<"",$A1+2<TODAY())

The part: $A1<""
will ensure that the condition is not triggered for blank cells* in col A
(dates)
*or for formula cells returning: "" in col A
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Doo0592" wrote:
Hi all,

I am setting up conditional formatting to change the interior colour
for a row to red when a date passes. This I can do but I cannot figure
out how to not have the cells change when No date is input.

Any help appreciated

Thanks x


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default CONDITIONAL FORMATTING- DATES

Thanks folks :)


Max wrote:

.. how to not have the cells change when No date is input.


Just set the condition to also check the date col for blank cells using an
AND(...). Eg something like this as condition 1:
Cond1: =AND($A1<"",$A1+2<TODAY())

The part: $A1<""
will ensure that the condition is not triggered for blank cells* in col A
(dates)
*or for formula cells returning: "" in col A
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Doo0592" wrote:
Hi all,

I am setting up conditional formatting to change the interior colour
for a row to red when a date passes. This I can do but I cannot figure
out how to not have the cells change when No date is input.

Any help appreciated

Thanks x



  #5   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CONDITIONAL FORMATTING- DATES

You're welcome.
Thanks for call-back ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Doo0592" wrote:
Thanks folks :)



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default CONDITIONAL FORMATTING- DATES

Call-back?

"Max" wrote in message
...
You're welcome.
Thanks for call-back ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Doo0592" wrote:
Thanks folks :)



  #7   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CONDITIONAL FORMATTING- DATES

"Bob Phillips" wrote:
Call-back?

Not literally, of course. Just means "feedback"
It's for variety, Bob <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default CONDITIONAL FORMATTING- DATES

:-) I thought you had one of those odd spell-checker amendments.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Max" wrote in message
...
"Bob Phillips" wrote:
Call-back?

Not literally, of course. Just means "feedback"
It's for variety, Bob <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



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 dates Sue Excel Discussion (Misc queries) 1 May 5th 10 04:12 AM
conditional formatting of dates Gretchster Excel Worksheet Functions 3 July 29th 09 06:54 PM
Conditional Formatting with dates Craig Excel Discussion (Misc queries) 3 November 3rd 08 02:29 PM
Conditional Formatting - Dates Ali Cat Excel Discussion (Misc queries) 2 December 6th 07 09:15 AM
Using Conditional Formatting for Dates MOP Excel Discussion (Misc queries) 6 November 3rd 06 06:25 PM


All times are GMT +1. The time now is 11:33 PM.

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"