Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Raj Raj is offline
external usenet poster
 
Posts: 130
Default when encountered Zero/Blank CF issues ...

New to Excel Programming ..

Question is how to achieve the following could be very simple but dang not
able to figure :
this is applied to whole column ,testing on a cell currently
AI19=0.2 Blue
AI19<-0.2 Green
=OR/AND(AI19<0.2,AI19-0.2,NOT(ISZERO(AI19))) RED...(this doesn't work for
some reason)
= when ZERO or BLANK ? WHITE (tricky part not able to figure)..

Don't know much of Macros ....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default when encountered Zero/Blank CF issues ...

Set the default to white, that is not C F.

The non-working formula should be

=AND(AI19-0.2,AI19<0.2,AI19<0)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Raj" wrote in message
...
New to Excel Programming ..

Question is how to achieve the following could be very simple but dang not
able to figure :
this is applied to whole column ,testing on a cell currently
AI19=0.2 Blue
AI19<-0.2 Green
=OR/AND(AI19<0.2,AI19-0.2,NOT(ISZERO(AI19))) RED...(this doesn't work

for
some reason)
= when ZERO or BLANK ? WHITE (tricky part not able to figure)..

Don't know much of Macros ....



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default when encountered Zero/Blank CF issues ...

=if(And(abs(AI19)<0.02,AI19<0,AI19<""),"Red","Wh ite")

--
Regards,
Tom Ogilvy



"Raj" wrote:

New to Excel Programming ..

Question is how to achieve the following could be very simple but dang not
able to figure :
this is applied to whole column ,testing on a cell currently
AI19=0.2 Blue
AI19<-0.2 Green
=OR/AND(AI19<0.2,AI19-0.2,NOT(ISZERO(AI19))) RED...(this doesn't work for
some reason)
= when ZERO or BLANK ? WHITE (tricky part not able to figure)..

Don't know much of Macros ....

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default when encountered Zero/Blank CF issues ...

Didn't see the CF in the subject

use formula is in all cases

first condition

=And(abs($AI$19)<=0.2,$AI$19<0,$AI$18<"")
format for Red

2nd condition
=$AI$190.2
format for blue

3rd condition
=$AI$19<-0.2
format for green

--
Regards,
Tom Ogilvy

"Raj" wrote:

New to Excel Programming ..

Question is how to achieve the following could be very simple but dang not
able to figure :
this is applied to whole column ,testing on a cell currently
AI19=0.2 Blue
AI19<-0.2 Green
=OR/AND(AI19<0.2,AI19-0.2,NOT(ISZERO(AI19))) RED...(this doesn't work for
some reason)
= when ZERO or BLANK ? WHITE (tricky part not able to figure)..

Don't know much of Macros ....

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default when encountered Zero/Blank CF issues ...

slight adjustment

first condition

=And(abs($AI$19)<0.2,$AI$19<0)
format for Red

2nd condition
=$AI$19=0.2
format for blue

3rd condition
=$AI$19<=-0.2
format for green


--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote:

Didn't see the CF in the subject

use formula is in all cases

first condition

=And(abs($AI$19)<=0.2,$AI$19<0,$AI$18<"")
format for Red

2nd condition
=$AI$190.2
format for blue

3rd condition
=$AI$19<-0.2
format for green

--
Regards,
Tom Ogilvy

"Raj" wrote:

New to Excel Programming ..

Question is how to achieve the following could be very simple but dang not
able to figure :
this is applied to whole column ,testing on a cell currently
AI19=0.2 Blue
AI19<-0.2 Green
=OR/AND(AI19<0.2,AI19-0.2,NOT(ISZERO(AI19))) RED...(this doesn't work for
some reason)
= when ZERO or BLANK ? WHITE (tricky part not able to figure)..

Don't know much of Macros ....



  #6   Report Post  
Posted to microsoft.public.excel.programming
Raj Raj is offline
external usenet poster
 
Posts: 130
Default when encountered Zero/Blank CF issues ...

How to Set Default color in CF or spreadsheet ? BTW your suggestions have
helped figure solution . Thx Tom and Bob .
great help indeed,
Raj



"Tom Ogilvy" wrote:

slight adjustment

first condition

=And(abs($AI$19)<0.2,$AI$19<0)
format for Red

2nd condition
=$AI$19=0.2
format for blue

3rd condition
=$AI$19<=-0.2
format for green


--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote:

Didn't see the CF in the subject

use formula is in all cases

first condition

=And(abs($AI$19)<=0.2,$AI$19<0,$AI$18<"")
format for Red

2nd condition
=$AI$190.2
format for blue

3rd condition
=$AI$19<-0.2
format for green

--
Regards,
Tom Ogilvy

"Raj" wrote:

New to Excel Programming ..

Question is how to achieve the following could be very simple but dang not
able to figure :
this is applied to whole column ,testing on a cell currently
AI19=0.2 Blue
AI19<-0.2 Green
=OR/AND(AI19<0.2,AI19-0.2,NOT(ISZERO(AI19))) RED...(this doesn't work for
some reason)
= when ZERO or BLANK ? WHITE (tricky part not able to figure)..

Don't know much of Macros ....

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default when encountered Zero/Blank CF issues ...

The default color is the same as for all other cells or if you manually
change the cell color, then the color you changed it to.

If a CF condition is not applied, it remains the color that it has been
formatted to normally.

--
Regards,
Tom Ogilvy



"Raj" wrote:

How to Set Default color in CF or spreadsheet ? BTW your suggestions have
helped figure solution . Thx Tom and Bob .
great help indeed,
Raj



"Tom Ogilvy" wrote:

slight adjustment

first condition

=And(abs($AI$19)<0.2,$AI$19<0)
format for Red

2nd condition
=$AI$19=0.2
format for blue

3rd condition
=$AI$19<=-0.2
format for green


--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote:

Didn't see the CF in the subject

use formula is in all cases

first condition

=And(abs($AI$19)<=0.2,$AI$19<0,$AI$18<"")
format for Red

2nd condition
=$AI$190.2
format for blue

3rd condition
=$AI$19<-0.2
format for green

--
Regards,
Tom Ogilvy

"Raj" wrote:

New to Excel Programming ..

Question is how to achieve the following could be very simple but dang not
able to figure :
this is applied to whole column ,testing on a cell currently
AI19=0.2 Blue
AI19<-0.2 Green
=OR/AND(AI19<0.2,AI19-0.2,NOT(ISZERO(AI19))) RED...(this doesn't work for
some reason)
= when ZERO or BLANK ? WHITE (tricky part not able to figure)..

Don't know much of Macros ....

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
Copy Up until Non-Blank Cell encountered Jim May Excel Discussion (Misc queries) 6 November 28th 07 02:02 PM
Excel encountered an error Dan Excel Discussion (Misc queries) 0 July 30th 07 06:54 PM
Has anyone ever encountered an error AFTER the macro has completed eluehmann[_5_] Excel Programming 2 August 11th 06 04:16 AM
Problem encountered Pat Setting up and Configuration of Excel 1 March 3rd 06 03:01 PM
Copy value and fill blank spaces below it until new value is encountered? drod[_2_] Excel Programming 4 January 8th 04 08:22 PM


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