Help using Conditional Formatting to highlight cells that are blank, AND other cell has specific value

hellscheshirecat

New Member
Joined
Jul 24, 2012
Messages
12
I am hoping you all can help me with a conditional formatting problem. I'm using Excel 2007 with Windows 7 Pro SP1 OS.

I need to format all the cells in column C, so that if their value is blank AND the value in column G (same row) is equal to the value "child" (without the quotations) the fill color is Red. So for example....

A
B
C
D
E
F
G
1
SKU
CODE
UPC
BRAND
NAME
COLOR
TYPE
2
123
a1b2c3
Mine
Phone
Black
child
3
546
d4e5f6
Yours
Key
Green
parent
4
789
g7h8i9
000000000000
Ours
Pen
Blue
group
5
1011
j0k1l2
111111111111
His
Pencil
Yellow
collection

<tbody>
</tbody>

So in this example I would need cell C2 to be highlighted red because it is blank and the value in G2 is "child". I know how to use conditional formatting to highlight blank cells but not how to combine it with looking at other cells.

Thanks for all your help!
JC
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Easiest way: Select C2. Go to conditional formatting, select "Formula Is" and type

=(C2="")*(G2="child")

and pick the color red.



Copy C2, highlight the rest of the cells in C, right click>paste special>formats.
 
Last edited:
Upvote 0
Just use AND

select C1
=(AND(C1<>"",G1="child"))
format as red

Use Format painter to copy the format down the column
 
Upvote 0
I'm pretty sure Ben's works fine but here is another one: =AND($C2="",$G2="child") (Follow his instructions)
 
Upvote 0
No problem :) Glad to help (y) Appreciate the feedback!
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top