Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SMac
 
Posts: n/a
Default Conditional Formatting OR Expression??

I am using all 3 conditions so is there a way to combine these 2 lines of
code into 1 condition? They both result in turning the cell red:

'(this line looks to see if there is a percent other than 0 or 100 and
calculates the percent where we should be versus the actual, cell H33)
=IF(AND(H330%,H33<100%),(H33<=((H32-$C$2)/$H$8)))
OR
=IF(H33=0%,(H32-$C$2)<$H$8)
'(this line looks to see if there are still enough days to complete)

Cell H33 is a % Comp, H32 is End Date, $C$2 is Today's Date and $H$8 is #
days to complete, just FYI.

THANKS!!
Stacey
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Do an OR

=OR(cond1,cond2)

--
HTH

Bob Phillips

"SMac" wrote in message
...
I am using all 3 conditions so is there a way to combine these 2 lines of
code into 1 condition? They both result in turning the cell red:

'(this line looks to see if there is a percent other than 0 or 100 and
calculates the percent where we should be versus the actual, cell H33)
=IF(AND(H330%,H33<100%),(H33<=((H32-$C$2)/$H$8)))
OR
=IF(H33=0%,(H32-$C$2)<$H$8)
'(this line looks to see if there are still enough days to complete)

Cell H33 is a % Comp, H32 is End Date, $C$2 is Today's Date and $H$8 is #
days to complete, just FYI.

THANKS!!
Stacey



  #3   Report Post  
SMac
 
Posts: n/a
Default

I am not sure how to combine them, how would that look?

"Bob Phillips" wrote:

Do an OR

=OR(cond1,cond2)

--
HTH

Bob Phillips

"SMac" wrote in message
...
I am using all 3 conditions so is there a way to combine these 2 lines of
code into 1 condition? They both result in turning the cell red:

'(this line looks to see if there is a percent other than 0 or 100 and
calculates the percent where we should be versus the actual, cell H33)
=IF(AND(H330%,H33<100%),(H33<=((H32-$C$2)/$H$8)))
OR
=IF(H33=0%,(H32-$C$2)<$H$8)
'(this line looks to see if there are still enough days to complete)

Cell H33 is a % Comp, H32 is End Date, $C$2 is Today's Date and $H$8 is #
days to complete, just FYI.

THANKS!!
Stacey




  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

It looks like this might work (well, to me!):

=OR(AND(H330%,H33<100%),AND(H33=0%,(H32-$C$2)<$H$8))



SMac wrote:

I am using all 3 conditions so is there a way to combine these 2 lines of
code into 1 condition? They both result in turning the cell red:

'(this line looks to see if there is a percent other than 0 or 100 and
calculates the percent where we should be versus the actual, cell H33)
=IF(AND(H330%,H33<100%),(H33<=((H32-$C$2)/$H$8)))
OR
=IF(H33=0%,(H32-$C$2)<$H$8)
'(this line looks to see if there are still enough days to complete)

Cell H33 is a % Comp, H32 is End Date, $C$2 is Today's Date and $H$8 is #
days to complete, just FYI.

THANKS!!
Stacey


--

Dave Peterson
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 Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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