LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 460
Default Conditional Formatting: There's More!

Luke: I typed
=IF(MAX(H4:Y4)<TODAY(),MAX(H4:Y4)<=TODAY()+30,MAX( H4:Y4)TODAY()+30) which
returned "TRUE". But, when I converted it to an icon set (stoplights), the
cell went blank. Please advise.

Incidentally, I believe the reason for the poorly written instructions was
that only certain cells were to be included in the count, based upon job
classifications shown in other cells. It gets very complicated.

DOUG

"DOUG" wrote:

Luke: This is exactly what I am working on now. How do I join three
conditions together into one IF statement? Or, is this all to be placed in
Conditional Formatting instructions?

DOUG

"Luke M" wrote:

The DATE functions has 3 arguements (year,month,day). As David said, it's
first asking if 16-Apr-2010 < "" (ALWAYS TRUE!). Since the second IF
function is always first, it returns DATE(2010,4,16) aka 4/16/2010.

But to get back to your main topic. If conditional format is simply checking
if any of the days are within certain ranges, the following three formulas
will do.

first condition
formula is:
=MAX(M150:Y150)<TODAY()
Set formatting to display red icon
(If any of the dates in this range are before today's date, then red)

second condition
formula is:
=MAX(M150:Y150)<=TODAY()+30
Set formatting for yellow
(If any of the dates in this range are within 30 days of today, then yellow)

Make default formatting of cell to be green, or use third condition:
formula is:
=MAX(M150:Y150)TODAY()+30

Hopefully this helps. As both David and I have pointed out, the formulas
you've been given are very poorly written, and it's probably better to start
over with the thought of "What do I want to happen?" as opposed to "What is
this trying to accomplish, and how do I make it work?"

--
Best Regards,

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


"DOUG" wrote:

David: Well, I am sure their intention was not humorous. But, you have a
good point. The "IF (Date..." expression throws me a bit. Which date do
they mean? Today's date? The date in some other cell? Then, it says "if
any of these things are true, then...[something?]". But, somehow, this is
generating a date in the subject cell.

In other words, this expression:
=IF(DATE(2010,4,16)<"",IF(DATE(2010,4,16)=DATE(7 777,12,31),"One Time
Only",(DATE(2010,4,16))))

shows "16-Apr-09". (So, I ask, why not just enter the date?).

The really vexing thing about this is the use of the stoplight symbol in
cell A1. It says that for all of the row, if "Number" 30, the circle is
green, if between 0 and 29 it is yellow and if it is less than zero, it is
red. This does not appear to correspond to the behavior in any of the other
date cells in that row. I believe it is trying to say that if any of the
training dates in the row are within 30 days of today (coming due) or less
than today (due), then display yellow or red as a warning. However, what the
"Number" means in this expression as it relates to dates is a mystery.

DOUG

"David Biddulph" wrote:

It appears to me that you have been given gibberish.

The formula
=IF(DATE(2010,4,16)<"",IF(DATE(2010,4,16)=DATE(7 777,12,31),"One Time
Only",(DATE(2010,4,16))))
is largely meaningless.
The first condition DATE(2010,4,16)<"" is always TRUE
The second condition DATE(2010,4,16)=DATE(7777,12,31) is always FALSE
So the formula could more sensible have been written not as
=IF(DATE(2010,4,16)<"",IF(DATE(2010,4,16)=DATE(7 777,12,31),"One Time
Only",(DATE(2010,4,16))))
but as
=DATE(2010,4,16)

If this is typical of the material you have been given to work with, I
suggest that you throw it all away and start again from square one.
Perhaps the sheet was written as a joke?
--
David Biddulph

"DOUG" wrote in message
...
David: I did not write it, but have been asked to help repair it. It
appears to me to say that if any of the dates in the various columns are
over
60 days old, then the stoplight indicator in the A column will turn red.
The
nuts and bolts of the expression are a little over my head, however. I
did
point out to the user that all but one of the date cells were based upon
formulas, i.e., someone had entered a plain date in a cell that should
have
displayed a formula. That cell should display the following formula:
=IF(DATE(2010,4,16)<"",IF(DATE(2010,4,16)=DATE(7 777,12,31),"One Time
Only",(DATE(2010,4,16))))

and I do not know what this means either.

DOUG

"David Biddulph" wrote:

For a conditional formatting condition I would expect to see a formula
that
returns TRUE or FALSE, so I'm not sure why you have a formula which is
returning numbers like -60.
-60 (or any number other than zero) will be treated as TRUE, but it isn't
clear why you are using an IF statement of that form.
Perhaps you could explain what you are trying to do?

The alternative to -60 is the expression
IF(LEFT(G150,4)="FFZZ",MIN(H150:J150,M150:Y150)-TODAY(),MIN(H150:J150,M150:Y150)-TODAY())
and here your value_if_true and value_if_false are identical
[MIN(H150:J150,M150:Y150)-TODAY()], so again perhaps you could explain to
us
what you are trying to achieve with that part of the formula?
--
David Biddulph

"DOUG" wrote in message
...
Please evaluate this:
=IF(AND(COUNT(H150:J150,M150:Y150)=16,COUNTBLANK(K 150:L150)<=1,COUNTBLANK(AA150)<=1,OR(LEFT(G150,4)= "FFZZ",AND(NOT(LEFT(G150,4)="FFZZ"),COUNT(Z150)=1) )),IF(LEFT(G150,4)="FFZZ",MIN(H150:J150,M150:Y150)-TODAY(),MIN(H150:J150,M150:Y150)-TODAY()),-60)

This is supposed to make the stoplight symbol in column A match the
colors
in subsequent cells in the same row, but it does not work.

DOUG ECKERT








 
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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


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