A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Question about syntax for conditional formatting



 
 
Thread Tools Display Modes
  #1  
Old March 22nd, 2010, 12:23 PM posted to microsoft.public.excel.worksheet.functions
Cbeckwith
external usenet poster
 
Posts: 5
Default Question about syntax for conditional formatting

See below:

Can someone explain the following in simple language;

=AND($B$12"",$B$12TODAY()+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.
  #2  
Old March 22nd, 2010, 12:32 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Question about syntax for conditional formatting

Hi

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

=AND($B$12"",$B$12TODAY()+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$12TODAY()+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$12TODAY()+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.

  #3  
Old March 22nd, 2010, 12:39 PM posted to microsoft.public.excel.worksheet.functions
Stefi
external usenet poster
 
Posts: 1,841
Default Question about syntax for conditional formatting

The condition becomes true if cell $B$12 is not blank and the date in it is
earlier than today + 120 days.

--
Regards!
Stefi



„Cbeckwith” ezt *rta:

See below:

Can someone explain the following in simple language;

=AND($B$12"",$B$12TODAY()+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.

  #4  
Old March 22nd, 2010, 03:22 PM posted to microsoft.public.excel.worksheet.functions
Cbeckwith
external usenet poster
 
Posts: 5
Default Question about syntax for conditional formatting

Mike, Thanks for this information, very helpful. Now my question becomes if
the B12 date is a future date, not a past date, how can I write the formula
to look at the date (B12) in comparision to Today's actual date + 120 days
into the future? Do I just change the to a today()+120 ?



"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$12TODAY()+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$12TODAY()+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$12TODAY()+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.

  #5  
Old March 22nd, 2010, 04:06 PM posted to microsoft.public.excel.worksheet.functions
Cbeckwith
external usenet poster
 
Posts: 5
Default Question about syntax for conditional formatting

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$12TODAY()+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$12TODAY()+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$12TODAY()+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.

  #6  
Old March 22nd, 2010, 04:44 PM posted to microsoft.public.excel.worksheet.functions
Cbeckwith
external usenet poster
 
Posts: 5
Default Question about syntax for conditional formatting (RESOLVED)

Thank You for all your comments, Very useful.

"Cbeckwith" wrote:

See below:

Can someone explain the following in simple language;

=AND($B$12"",$B$12TODAY()+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.

  #7  
Old March 23rd, 2010, 10:06 AM posted to microsoft.public.excel.worksheet.functions
Stefi
external usenet poster
 
Posts: 1,841
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$12TODAY()+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$12TODAY()+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$12TODAY()+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
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.