Conditionally formatting a cell based on another cell

seroberts242

New Member
Joined
Mar 9, 2012
Messages
10
Hello,

I'm trying to figure out how to conditionally format a cell based on another cell..

Example,
Cell to be formatted in column AC
Based on cell in column M

If AC3 is blank or contains value "x"
And M3 is not blank
Then format AC3 with color

Thank you for your help!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Select column AC.
Click Conditional Formatting > New Rule > Use a Formula > and enter:

=AND(OR(AC1="",AC1="x"),M1<>"")

Select your fill color.
 
Upvote 0
Try this:

Select the cell or range of cells that you want Conditionally Formatted. In the case of your example, that would be AC3.

Conditional Formatting > New Rule > Use a formula

=AND(OR(AC3="",AC3="x"),M3<>"")

Format however you'd like
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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