Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BruceS
 
Posts: n/a
Default Multiple-Test Conditional Formatting

Hi, everyone!

I have a spreadsheet in which one column (B) contains an item "type", e.g.
"C" or "H". In another column (G), I put a "required" sub-item. I am trying
to conditionally format the cell in column G to do the following:

If Col B = "C" and Col G is blank, make background of Col G red;
Otherwise, make background of Col G normal.

Using normal CF, I can make G's background red if Col B = "C" (formula is),
or I can make it red if Col G is blank (cell value is), but can't seem to
find the trick of combining the two different condition types with an "AND".

I've looked through over a dozen posts here as well as checked out Debra
Dangleish's site and cpearson.com. Can't find anything similar.

Can anyone help?

Thanks,
BruceS
  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

Try this:

Select G1, then,

Formula is,
=AND(B1="C",G1="")

Copy down as needed.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"BruceS" wrote in message
...
Hi, everyone!

I have a spreadsheet in which one column (B) contains an item "type", e.g.
"C" or "H". In another column (G), I put a "required" sub-item. I am

trying
to conditionally format the cell in column G to do the following:

If Col B = "C" and Col G is blank, make background of Col G red;
Otherwise, make background of Col G normal.

Using normal CF, I can make G's background red if Col B = "C" (formula

is),
or I can make it red if Col G is blank (cell value is), but can't seem to
find the trick of combining the two different condition types with an

"AND".

I've looked through over a dozen posts here as well as checked out Debra
Dangleish's site and cpearson.com. Can't find anything similar.

Can anyone help?

Thanks,
BruceS


  #3   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Bruce,

Select the cells in G2. This CF formula is for where the active (white)
cell of your selection is G2:

=AND(B2="C", G2="")
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"BruceS" wrote in message
...
Hi, everyone!

I have a spreadsheet in which one column (B) contains an item "type", e.g.
"C" or "H". In another column (G), I put a "required" sub-item. I am
trying
to conditionally format the cell in column G to do the following:

If Col B = "C" and Col G is blank, make background of Col G red;
Otherwise, make background of Col G normal.

Using normal CF, I can make G's background red if Col B = "C" (formula
is),
or I can make it red if Col G is blank (cell value is), but can't seem to
find the trick of combining the two different condition types with an
"AND".

I've looked through over a dozen posts here as well as checked out Debra
Dangleish's site and cpearson.com. Can't find anything similar.

Can anyone help?

Thanks,
BruceS



  #4   Report Post  
bj
 
Posts: n/a
Default

try =and(B1="C",G1="")
I often have to reenter the conditional formating section a couple of times
cause Excel tries to correct what I say and I have to get rid of Quote marks
or absolute references. (Of course I do make enough mistakes, that some of
the reentries are because I wrote it wrong.)

"BruceS" wrote:

Hi, everyone!

I have a spreadsheet in which one column (B) contains an item "type", e.g.
"C" or "H". In another column (G), I put a "required" sub-item. I am trying
to conditionally format the cell in column G to do the following:

If Col B = "C" and Col G is blank, make background of Col G red;
Otherwise, make background of Col G normal.

Using normal CF, I can make G's background red if Col B = "C" (formula is),
or I can make it red if Col G is blank (cell value is), but can't seem to
find the trick of combining the two different condition types with an "AND".

I've looked through over a dozen posts here as well as checked out Debra
Dangleish's site and cpearson.com. Can't find anything similar.

Can anyone help?

Thanks,
BruceS

  #5   Report Post  
BruceS
 
Posts: n/a
Default

Thanks, guys!! Worked great.
BruceS

"BruceS" wrote:

Hi, everyone!

I have a spreadsheet in which one column (B) contains an item "type", e.g.
"C" or "H". In another column (G), I put a "required" sub-item. I am trying
to conditionally format the cell in column G to do the following:

If Col B = "C" and Col G is blank, make background of Col G red;
Otherwise, make background of Col G normal.

Using normal CF, I can make G's background red if Col B = "C" (formula is),
or I can make it red if Col G is blank (cell value is), but can't seem to
find the trick of combining the two different condition types with an "AND".

I've looked through over a dozen posts here as well as checked out Debra
Dangleish's site and cpearson.com. Can't find anything similar.

Can anyone help?

Thanks,
BruceS

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
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
Multiple FIND functions in Conditional Formatting RocketFuMaster Excel Worksheet Functions 2 March 2nd 05 06:09 PM
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM
How do I use conditional formatting for multiple rows? Jim Johnson Excel Worksheet Functions 1 October 30th 04 03:36 AM


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