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  

Conditional Formatting on a cell that has an IF function



 
 
Thread Tools Display Modes
  #1  
Old May 11th, 2004, 05:13 PM
DDM
external usenet poster
 
Posts: n/a
Default Conditional Formatting on a cell that has an IF function

Jon, assume SheetB!C4="Y" is your true condition and SheetB!C4="N" is your
false one. Since the cell is located on a different worksheet, you won't be
able to refer to it by its address; you'll have to define a name for it
(select the cell and Insert Name Define; enter a name; OK). I'll call
SheetB!C4 "flag1." C5 can be flag2.

In SheetA!B4, do the conditional formatting (Format Conditional
Formatting) as follows:

Condition 1: Formula is: =flag1="Y". Format Patterns [green] OK
Condition 2: Formula is: =flag1="N". Format Patterns [red] OK

Repeat for SheetA!B5, substituting flag2 for flag1.
--
DDM
"DDM's Microsoft Office Tips and Tricks"
Visit us at www.ddmcomputing.com


"Jon W" wrote in message
...
I have a column of data that pulls data from two sheets based off of a

flag

SheetA.Cell(B4) =IF(SheetB!C4 = "Y", SheetB!B4, SheetC!B4)
SheetA.Cell(B5) =IF(SheetB!C5 = "Y", SheetB!B5, SheetC!B5)
....

I would like to add conditional formatting to the SheetA cells to show

green with a true condition and red with a false conditon.

Thanks.



 




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 08:53 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.