LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Question about syntax for conditional formatting

Change the order of the three conditions like this:

=AND($B$12<"",$B$12TODAY()+180)
Formats to a green background


=AND($B$12<"",$B$12TODAY()+120)
Formats to a yellow background


=AND($B$12<"",$B$12TODAY()+60)
Formats to pink background


If the first condition evaluates to True, the other two will NOT be
evaluated!

--
Regards!
Stefi



€˛Cbeckwith€¯ ezt Ć*rta:

This formula is just giving me "Pink" color on background no matter what date
I give it in the b12

=AND($B$12<"",$B$12TODAY()+60)
Formats to pink background

=AND($B$12<"",$B$12TODAY()+120)
Formats to a yellow background

=AND($B$12<"",$B$12TODAY()+180)
Formats to a green background

According to what I see, it should give me the different colors depending.





"Mike H" wrote:

Hi

The formula will evaluate as TRUE or FALSE and is checking 2 conditions
which must both be TRUE

=AND($B$12<"",$B$12<TODAY()+120)

the AND is the bit that ensure both must be true to return TRUE

Condition 1 checks that B12 has data in the cell i.e < means 'does not equal'
$B$12<""


Condition 2 checks that the date in the cell is less than (<) 120 days in
the future
$B$12<TODAY()+120

The reason condition 1 is required is that B12 would evaluate as zero if it
was empty and cause the formula to evaluate as TRUE
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Cbeckwith" wrote:

See below:

Can someone explain the following in simple language;

=AND($B$12<"",$B$12<TODAY()+120)

What does the < after the cell location mean? and why the double quotes ""?
I thought the double quotes meant whatever is in the cell is NULL....I have a
date in the $B$12 position.



 
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 Question Emece Excel Discussion (Misc queries) 1 January 20th 09 07:48 PM
Conditional Formatting Question mommatee Excel Worksheet Functions 2 July 22nd 08 03:35 PM
Another conditional formatting question. James Silverton[_2_] Excel Discussion (Misc queries) 1 March 12th 08 02:37 PM
Conditional Formatting Question Gary Excel Worksheet Functions 6 May 7th 07 11:32 PM
Conditional Formatting question Helen Holubowicz Excel Worksheet Functions 8 January 3rd 07 11:34 AM


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