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

I have inherited a spreadsheet with some conditional formatting that has
stopped working. The goal is to highlight data a certain color based on its
age (Today, 1 day old, 2 days old). This has worked until today (31st day of
the month) and I cannot figure out how to change the formula to make it work.
These are the current formulas:
=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=1,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=2,C3<"",J3="",O3="",P3=" ")

I have tried using cell value = TODAY(), but that hasn't worked...

Thanks in advance :)

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Conditional Formatting by date

Use

=TODAY()-A3=0

and so on

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
I have inherited a spreadsheet with some conditional formatting that has
stopped working. The goal is to highlight data a certain color based on
its
age (Today, 1 day old, 2 days old). This has worked until today (31st day
of
the month) and I cannot figure out how to change the formula to make it
work.
These are the current formulas:
=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=1,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=2,C3<"",J3="",O3="",P3=" ")

I have tried using cell value = TODAY(), but that hasn't worked...

Thanks in advance :)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Conditional Formatting by date

Do I need to have a cell with the date in it to reference?

I have narrowed down the problem to the DAYS360 function - it only takes
into account 30-day months. Is there a function that rcognizes the 31st day?

"Peo Sjoblom" wrote:

Use

=TODAY()-A3=0

and so on

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
I have inherited a spreadsheet with some conditional formatting that has
stopped working. The goal is to highlight data a certain color based on
its
age (Today, 1 day old, 2 days old). This has worked until today (31st day
of
the month) and I cannot figure out how to change the formula to make it
work.
These are the current formulas:
=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=1,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=2,C3<"",J3="",O3="",P3=" ")

I have tried using cell value = TODAY(), but that hasn't worked...

Thanks in advance :)




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Conditional Formatting by date

Dates in Excel are just numbers where on day = 1 so if you have 2 dates
you just subtract to get the number of dates. forget DAYS360 it's for
accountants using
months that are always 30 days


This


TODAY()-A3=0



equals this

DAYS360(A3,TODAY())=0


in your original formula so
all you have to do is to replace that
part with the new



=AND(TODAY()-A3=0,C3<"",J3="",O3="",P3="")


and so on






--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
Do I need to have a cell with the date in it to reference?

I have narrowed down the problem to the DAYS360 function - it only takes
into account 30-day months. Is there a function that rcognizes the 31st
day?

"Peo Sjoblom" wrote:

Use

=TODAY()-A3=0

and so on

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
I have inherited a spreadsheet with some conditional formatting that has
stopped working. The goal is to highlight data a certain color based
on
its
age (Today, 1 day old, 2 days old). This has worked until today (31st
day
of
the month) and I cannot figure out how to change the formula to make it
work.
These are the current formulas:
=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=1,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=2,C3<"",J3="",O3="",P3=" ")

I have tried using cell value = TODAY(), but that hasn't worked...

Thanks in advance :)






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Conditional Formatting by date

That works to highlight everything that is not today's date.
What I really need is to highlight everything with today's date orange,
everything 1 day ago yellow, and 2 days ago blue...

"Peo Sjoblom" wrote:

Dates in Excel are just numbers where on day = 1 so if you have 2 dates
you just subtract to get the number of dates. forget DAYS360 it's for
accountants using
months that are always 30 days


This


TODAY()-A3=0



equals this

DAYS360(A3,TODAY())=0


in your original formula so
all you have to do is to replace that
part with the new



=AND(TODAY()-A3=0,C3<"",J3="",O3="",P3="")


and so on






--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
Do I need to have a cell with the date in it to reference?

I have narrowed down the problem to the DAYS360 function - it only takes
into account 30-day months. Is there a function that rcognizes the 31st
day?

"Peo Sjoblom" wrote:

Use

=TODAY()-A3=0

and so on

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
I have inherited a spreadsheet with some conditional formatting that has
stopped working. The goal is to highlight data a certain color based
on
its
age (Today, 1 day old, 2 days old). This has worked until today (31st
day
of
the month) and I cannot figure out how to change the formula to make it
work.
These are the current formulas:
=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=1,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=2,C3<"",J3="",O3="",P3=" ")

I have tried using cell value = TODAY(), but that hasn't worked...

Thanks in advance :)









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Conditional Formatting by date

As I said this


=AND(TODAY()-A3=0,C3<"",J3="",O3="",P3="")



is exactly the same as this


=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")


and the 2 other ones would be


=AND(TODAY()-A3=1,C3<"",J3="",O3="",P3="")

and


=AND(TODAY()-A3=2,C3<"",J3="",O3="",P3="")






so if that worked the new will work which it did when I tested


with 10/31/08 in A3 and the rest of the conditions TRUE it will show orange,
with 10/30/08 it will be yellow and with 10/29/08 it will be blue

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
That works to highlight everything that is not today's date.
What I really need is to highlight everything with today's date orange,
everything 1 day ago yellow, and 2 days ago blue...

"Peo Sjoblom" wrote:

Dates in Excel are just numbers where on day = 1 so if you have 2 dates
you just subtract to get the number of dates. forget DAYS360 it's for
accountants using
months that are always 30 days


This


TODAY()-A3=0



equals this

DAYS360(A3,TODAY())=0


in your original formula so
all you have to do is to replace that
part with the new



=AND(TODAY()-A3=0,C3<"",J3="",O3="",P3="")


and so on






--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
Do I need to have a cell with the date in it to reference?

I have narrowed down the problem to the DAYS360 function - it only
takes
into account 30-day months. Is there a function that rcognizes the
31st
day?

"Peo Sjoblom" wrote:

Use

=TODAY()-A3=0

and so on

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
I have inherited a spreadsheet with some conditional formatting that
has
stopped working. The goal is to highlight data a certain color
based
on
its
age (Today, 1 day old, 2 days old). This has worked until today
(31st
day
of
the month) and I cannot figure out how to change the formula to make
it
work.
These are the current formulas:
=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=1,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=2,C3<"",J3="",O3="",P3=" ")

I have tried using cell value = TODAY(), but that hasn't worked...

Thanks in advance :)









  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Conditional Formatting by date

Okay, that works, thanks.

"Peo Sjoblom" wrote:

As I said this


=AND(TODAY()-A3=0,C3<"",J3="",O3="",P3="")



is exactly the same as this


=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")


and the 2 other ones would be


=AND(TODAY()-A3=1,C3<"",J3="",O3="",P3="")

and


=AND(TODAY()-A3=2,C3<"",J3="",O3="",P3="")






so if that worked the new will work which it did when I tested


with 10/31/08 in A3 and the rest of the conditions TRUE it will show orange,
with 10/30/08 it will be yellow and with 10/29/08 it will be blue

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
That works to highlight everything that is not today's date.
What I really need is to highlight everything with today's date orange,
everything 1 day ago yellow, and 2 days ago blue...

"Peo Sjoblom" wrote:

Dates in Excel are just numbers where on day = 1 so if you have 2 dates
you just subtract to get the number of dates. forget DAYS360 it's for
accountants using
months that are always 30 days


This


TODAY()-A3=0



equals this

DAYS360(A3,TODAY())=0


in your original formula so
all you have to do is to replace that
part with the new



=AND(TODAY()-A3=0,C3<"",J3="",O3="",P3="")


and so on






--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
Do I need to have a cell with the date in it to reference?

I have narrowed down the problem to the DAYS360 function - it only
takes
into account 30-day months. Is there a function that rcognizes the
31st
day?

"Peo Sjoblom" wrote:

Use

=TODAY()-A3=0

and so on

--


Regards,


Peo Sjoblom

"lola5375" wrote in message
...
I have inherited a spreadsheet with some conditional formatting that
has
stopped working. The goal is to highlight data a certain color
based
on
its
age (Today, 1 day old, 2 days old). This has worked until today
(31st
day
of
the month) and I cannot figure out how to change the formula to make
it
work.
These are the current formulas:
=AND(DAYS360(A3,TODAY())=0,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=1,C3<"",J3="",O3="",P3=" ")
=AND(DAYS360(A3,TODAY())=2,C3<"",J3="",O3="",P3=" ")

I have tried using cell value = TODAY(), but that hasn't worked...

Thanks in advance :)










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 for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Conditional Formatting A Date Peter W Soady \(UK\) Excel Discussion (Misc queries) 4 July 20th 07 05:51 PM
conditional DATE formatting? LTUser54 Excel Discussion (Misc queries) 2 May 18th 06 09:24 PM
Conditional Formatting:Date rmcgal Excel Discussion (Misc queries) 3 August 16th 05 09:15 PM
Conditional Formatting, date. DissentChick Excel Worksheet Functions 2 July 20th 05 03:37 PM


All times are GMT +1. The time now is 05:08 AM.

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"