Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tel Tel is offline
external usenet poster
 
Posts: 39
Default Conditional Formatting dependent on whether cell is populated.

I want to conditionally format cell G2 dependent upon whether there is a
value in cell C2 AND G2

Therefore,
if cell C2 has a value in it and cell G2 doesn't then cell G2 color = Amber
if cell C2 has a value in it and cell G2 has a value then cell G2 color =
Green

Any helpful hints or useful suggestions?

Thanks

Tel
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Conditional Formatting dependent on whether cell is populated.

Conditional Format of G2,
condition 1:
=AND(COUNTA(C2)=1,ISBLANK(G2))
format Amber

condition 2:
=COUNTA(C2,G2)=2
format Green
--
Best Regards,

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


"Tel" wrote:

I want to conditionally format cell G2 dependent upon whether there is a
value in cell C2 AND G2

Therefore,
if cell C2 has a value in it and cell G2 doesn't then cell G2 color = Amber
if cell C2 has a value in it and cell G2 has a value then cell G2 color =
Green

Any helpful hints or useful suggestions?

Thanks

Tel

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Conditional Formatting dependent on whether cell is populated.

Depends what you mean by "a value". Is the null string "" a value in your
terms?
CF/ Formula Is/ =AND(C2<"",G2="") for Amber [or
=AND(NOT(ISBLANK(C2),ISBLANK(G2))]
Either modify the above for your Green condition, or =COUNTA(C2,G2)=2
--
David Biddulph

"Tel" wrote in message
...
I want to conditionally format cell G2 dependent upon whether there is a
value in cell C2 AND G2

Therefore,
if cell C2 has a value in it and cell G2 doesn't then cell G2 color =
Amber
if cell C2 has a value in it and cell G2 has a value then cell G2 color =
Green

Any helpful hints or useful suggestions?

Thanks

Tel



  #4   Report Post  
Posted to microsoft.public.excel.misc
Tel Tel is offline
external usenet poster
 
Posts: 39
Default Conditional Formatting dependent on whether cell is populated.

Excellent, thank you

Tel

"Luke M" wrote:

Conditional Format of G2,
condition 1:
=AND(COUNTA(C2)=1,ISBLANK(G2))
format Amber

condition 2:
=COUNTA(C2,G2)=2
format Green
--
Best Regards,

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


"Tel" wrote:

I want to conditionally format cell G2 dependent upon whether there is a
value in cell C2 AND G2

Therefore,
if cell C2 has a value in it and cell G2 doesn't then cell G2 color = Amber
if cell C2 has a value in it and cell G2 has a value then cell G2 color =
Green

Any helpful hints or useful suggestions?

Thanks

Tel

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 dependent of preceding cell Beth W Excel Discussion (Misc queries) 1 August 19th 09 05:58 PM
How to set a conditional format that is dependent on cell type Phil Chamberlin Excel Discussion (Misc queries) 2 August 29th 08 05:59 PM
conditional number format dependent on other cell Harold Good Excel Discussion (Misc queries) 2 April 25th 08 03:41 PM
Conditional Formatting dependent on another cell Martin Ledgard[_2_] Excel Discussion (Misc queries) 3 November 18th 07 11:48 AM
Data Validation - Dependent Lists & Conditional Formatting Bob Excel Worksheet Functions 18 October 4th 07 03:24 AM


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

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

About Us

"It's about Microsoft Excel"