Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Aging Dates in Cond. Formatting

Hi All,

I have an issues report that I want to code the dates in. e.g. if the date
is 20x40 days old i want it yellow. If it's 40+ days old, I want it in
red. I get part of the first conditional format: (formula is)
=a1<=today()-20 . But how do I get it to stop at 40, and then switch to red
for 40+ (a second condition that looks like =a1<=today()-40 )?

Also, how do I make a condition for when nothing is in the cell and I don't
want any formatting? I have space in the log for 50 issues, but I don't
want to see yellow or red for all the cells where the value is null...

Is this something I need to do in VBA? if so - help with the syntax?

Thanks in advance!

Anders
--
I''''ve encountered an error and I need to close for the weekend :)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Aging Dates in Cond. Formatting

Your statement is mathematically impossible. How can something be less than
20, and greater than 40? Unless you mean 20<x<40? Is so:

Formula 1:
=AND(TODAY()-20=A1,A1=TODAY()-40)
format yellow

Formula2:
=AND(A1<0,TODAY()-40A1)
format red

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Anders" wrote:

Hi All,

I have an issues report that I want to code the dates in. e.g. if the date
is 20x40 days old i want it yellow. If it's 40+ days old, I want it in
red. I get part of the first conditional format: (formula is)
=a1<=today()-20 . But how do I get it to stop at 40, and then switch to red
for 40+ (a second condition that looks like =a1<=today()-40 )?

Also, how do I make a condition for when nothing is in the cell and I don't
want any formatting? I have space in the log for 50 issues, but I don't
want to see yellow or red for all the cells where the value is null...

Is this something I need to do in VBA? if so - help with the syntax?

Thanks in advance!

Anders
--
I''''ve encountered an error and I need to close for the weekend :)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Aging Dates in Cond. Formatting

AHA - it works. Thanks Luke (and for catching my error :))


--
I''''ve encountered an error and I need to close for the weekend :)


"Luke M" wrote:

Your statement is mathematically impossible. How can something be less than
20, and greater than 40? Unless you mean 20<x<40? Is so:

Formula 1:
=AND(TODAY()-20=A1,A1=TODAY()-40)
format yellow

Formula2:
=AND(A1<0,TODAY()-40A1)
format red

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Anders" wrote:

Hi All,

I have an issues report that I want to code the dates in. e.g. if the date
is 20x40 days old i want it yellow. If it's 40+ days old, I want it in
red. I get part of the first conditional format: (formula is)
=a1<=today()-20 . But how do I get it to stop at 40, and then switch to red
for 40+ (a second condition that looks like =a1<=today()-40 )?

Also, how do I make a condition for when nothing is in the cell and I don't
want any formatting? I have space in the log for 50 issues, but I don't
want to see yellow or red for all the cells where the value is null...

Is this something I need to do in VBA? if so - help with the syntax?

Thanks in advance!

Anders
--
I''''ve encountered an error and I need to close for the weekend :)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Aging Dates in Cond. Formatting

One more question Luke.

If I have in A3 - the resolved date of issue and I want the formatting in A1
to turn green if the date in a3 is a1, is this possible? or should I just
format a3 to change if not equal to 0 and leave the a1 formatting.
--
I''''ve encountered an error and I need to close for the weekend :)


"Luke M" wrote:

Your statement is mathematically impossible. How can something be less than
20, and greater than 40? Unless you mean 20<x<40? Is so:

Formula 1:
=AND(TODAY()-20=A1,A1=TODAY()-40)
format yellow

Formula2:
=AND(A1<0,TODAY()-40A1)
format red

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Anders" wrote:

Hi All,

I have an issues report that I want to code the dates in. e.g. if the date
is 20x40 days old i want it yellow. If it's 40+ days old, I want it in
red. I get part of the first conditional format: (formula is)
=a1<=today()-20 . But how do I get it to stop at 40, and then switch to red
for 40+ (a second condition that looks like =a1<=today()-40 )?

Also, how do I make a condition for when nothing is in the cell and I don't
want any formatting? I have space in the log for 50 issues, but I don't
want to see yellow or red for all the cells where the value is null...

Is this something I need to do in VBA? if so - help with the syntax?

Thanks in advance!

Anders
--
I''''ve encountered an error and I need to close for the weekend :)

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
sumproduct with dates for aging Jan Excel Worksheet Functions 2 March 30th 09 04:46 PM
Aging formula with unknown dates Serendipity Excel Worksheet Functions 5 August 20th 08 03:56 AM
aging days between dates Karel Excel Discussion (Misc queries) 1 July 22nd 07 11:13 PM
cond formatting ? Brian Excel Worksheet Functions 2 July 11th 06 04:12 PM
Cond formatting katmando Excel Discussion (Misc queries) 1 April 13th 06 02:20 PM


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