Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Conditional formatting if condition of an if statement is true and astring value is displayed

Dear Experts:

I got a nested 'IF'-Formula in an excel cell that returns nothing if
the condition is false.

I would like to conditionally format this cell with grey shading if
the condition is true and a string value is displayed.

How can this be achieved using excel conditional formating
functionality ?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional formatting if condition of an if statement is true and astring value is displayed


Let's say your doing this conditional formatting in cell K17. In
conditional formatting (xl2003) choose the FormulaIs: option and enter:
=$K$17<""
choose your formatting and OK.

In xl2007, choose NewRule..., then 'Use a formula to determine which
cells to format' and in the 'Format values where this formula is true'
field, use the formula given above, set your format and OK.
Make sure there are no other conditional formats interfering in the
same cell.



andreashermle;731842 Wrote:

Dear Experts:

I got a nested 'IF'-Formula in an excel cell that returns nothing if
the condition is false.

I would like to conditionally format this cell with grey shading if
the condition is true and a string value is displayed.

How can this be achieved using excel conditional formating
functionality ?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas



--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?u=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=205130

http://www.thecodecage.com/forumz

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Conditional formatting if condition of an if statement is trueand a string value is displayed

Hi

Select the cell, in my example I will use A1, goto conditional
formatting Condition1: Formula is enter this formula:

=A1<""

Select the desired formatting.

Hopes this helps.
....
Per

On 26 Maj, 17:55, andreashermle wrote:
Dear Experts:

I got a nested 'IF'-Formula in an excel cell that returns nothing if
the condition is false.

I would like to conditionally format this cell with grey shading if
the condition is true and a string value is displayed.

How can this be achieved using excel conditional formating
functionality ?

Help is much appreciated. Thank you very much in advance.

Regards, Andreas


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 Applied when Statement Not True Deanna Excel Discussion (Misc queries) 7 September 23rd 09 04:14 PM
Using Conditional Formatting to write Text Value only if true Jim S[_3_] Excel Programming 4 April 7th 08 04:01 PM
Conditional Formatting if a certain condition is met JerryG Excel Programming 2 August 4th 07 10:18 PM
IF statement and color formatting for cell B1 for condition in A1 Rossta Excel Worksheet Functions 1 July 27th 06 12:37 AM
Conditional Formatting for True/False Phil H.[_2_] Excel Programming 1 November 8th 05 09:14 PM


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