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 Format



 
 
Thread Tools Display Modes
  #1  
Old April 14th, 2009, 02:34 PM posted to microsoft.public.excel.worksheet.functions
Randy
external usenet poster
 
Posts: 398
Default Conditional Format

I'm wanting to shade a cell if 2 conditions are true. They problem I am
having is that one of the cells uses the VLOOKUP function. I can get the cell
to change colors if I specify just one condition. Example:
=AND(B4=F277,B6=0). I want a range of cells to be specified. When I try
this, the condition doesnt work. Such As: =AND(B4=F277:F284,B6=0). I've even
tried: =AND(B4=$F$277:$F$284,B6=0). How can I specify a range of cells in a
conditional format? Should I be using an IF statement?

  #2  
Old April 14th, 2009, 03:13 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Conditional Format

Select F277:F284
Conditional Formatting

=AND($B$4=$F277,$B$6=0)


"Randy" wrote:

I'm wanting to shade a cell if 2 conditions are true. They problem I am
having is that one of the cells uses the VLOOKUP function. I can get the cell
to change colors if I specify just one condition. Example:
=AND(B4=F277,B6=0). I want a range of cells to be specified. When I try
this, the condition doesnt work. Such As: =AND(B4=F277:F284,B6=0). I've even
tried: =AND(B4=$F$277:$F$284,B6=0). How can I specify a range of cells in a
conditional format? Should I be using an IF statement?

  #3  
Old April 14th, 2009, 03:19 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Conditional Format

I'm not totally clear what your test is supposed to be. Does this do what
you want?

=AND(COUNTIF(F277:F284,B4)0,B6=0)

--
Rick (MVP - Excel)


"Randy" wrote in message
...
I'm wanting to shade a cell if 2 conditions are true. They problem I am
having is that one of the cells uses the VLOOKUP function. I can get the
cell
to change colors if I specify just one condition. Example:
=AND(B4=F277,B6=0). I want a range of cells to be specified. When I try
this, the condition doesnt work. Such As: =AND(B4=F277:F284,B6=0). I've
even
tried: =AND(B4=$F$277:$F$284,B6=0). How can I specify a range of cells in
a
conditional format? Should I be using an IF statement?


  #4  
Old April 14th, 2009, 03:41 PM posted to microsoft.public.excel.worksheet.functions
Randy
external usenet poster
 
Posts: 398
Default Conditional Format

That works great, but i should have been more specific. I want cell B6 to be
shaded. Sorry for not saying that in my first post.

"Teethless mama" wrote:

Select F277:F284
Conditional Formatting

=AND($B$4=$F277,$B$6=0)


"Randy" wrote:

I'm wanting to shade a cell if 2 conditions are true. They problem I am
having is that one of the cells uses the VLOOKUP function. I can get the cell
to change colors if I specify just one condition. Example:
=AND(B4=F277,B6=0). I want a range of cells to be specified. When I try
this, the condition doesnt work. Such As: =AND(B4=F277:F284,B6=0). I've even
tried: =AND(B4=$F$277:$F$284,B6=0). How can I specify a range of cells in a
conditional format? Should I be using an IF statement?

  #5  
Old April 14th, 2009, 03:51 PM posted to microsoft.public.excel.worksheet.functions
Randy
external usenet poster
 
Posts: 398
Default Conditional Format

Yes! That works perfect. Thanks for the help.

"Rick Rothstein" wrote:

I'm not totally clear what your test is supposed to be. Does this do what
you want?

=AND(COUNTIF(F277:F284,B4)0,B6=0)

--
Rick (MVP - Excel)


"Randy" wrote in message
...
I'm wanting to shade a cell if 2 conditions are true. They problem I am
having is that one of the cells uses the VLOOKUP function. I can get the
cell
to change colors if I specify just one condition. Example:
=AND(B4=F277,B6=0). I want a range of cells to be specified. When I try
this, the condition doesnt work. Such As: =AND(B4=F277:F284,B6=0). I've
even
tried: =AND(B4=$F$277:$F$284,B6=0). How can I specify a range of cells in
a
conditional format? Should I be using an IF statement?



 




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 05: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.