Multiple Conditions - Conditional Format

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
622
Office Version
  1. 2011
Platform
  1. MacOS
Hi everyone,
I know how to do most conditional formatting, but this one I'm not sure of. Hopefully I can explain it well enough so you understand what I'm looking for.

Could someone please figure out a formula that checks for the following?
  • With cells S3 - AD100, if there is no "x" in the cell, but there is a value>0 in the cell S1 - AD1, then I need to highlight the fill of the cell
By looking at the attached image you'll see that cell U7 has no x, but there is a value greater than 0 in cell U1. The formatting would then highlight the fill color of that cell.

Thank you for any help offered!
 

Attachments

  • Mr.Excel.jpg
    Mr.Excel.jpg
    72.4 KB · Views: 7

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Select cells S1:AD1 and enter this Conditional Formatting formula:
Excel Formula:
=and(countif(S3:S100,"x")=0,S1>0)
and choose your desired formatting color.
 
Upvote 0
MrExcelPlayground18.xlsx
STUVW
151274
2FebMarAprMayJune
3xxxx
4xx5x
5xxx
6xx5x
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
S3:W6Expression=AND(S3<>"x",S$1>0)textNO
 
Upvote 0
Solution
MrExcelPlayground18.xlsx
STUVW
151274
2FebMarAprMayJune
3xxxx
4xx5x
5xxx
6xx5x
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
S3:W6Expression=AND(S3<>"x",S$1>0)textNO
James, I had to re-read that a few times to fully grasp it myself, but I am pretty sure that they only want to apply the Conditional Formatting to row 1, not each data row, based on the condition that no "x"s appear in rows 3-100 for that particular column, and there is a number > 0 in row 1 of that column.
 
Upvote 0
Ambiguous antecedents for "the cell"

I expect he will have what he needs one way or the other.
 
Upvote 0
Hi James & Joe,
I haven't tried either of your suggestions yet, but the cells that I need to have the conditional formatting highlight are from S3 to AD100, but only if the cell(s) S3 to AD100 do not contain an "x" and the cell above it (S1 to AD1) has a value greater than 0.

I hope that helps a little more.
 
Last edited:
Upvote 0
James, I tried your formula and it is doing what I need, except that it is also highlighting cells from S3 to AD100 which contain a number. It must only apply if the cell is blank.

Thank you!
 
Upvote 0
Got it, James. I just changed your formula to S3="" and it works perfectly! Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,103
Messages
6,123,105
Members
449,096
Latest member
provoking

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