Conditional formatting with multiple conditions not working

megera716

Board Regular
Joined
Jan 3, 2013
Messages
139
Office Version
  1. 365
Platform
  1. Windows
I have a Pivot table in M2:O128. When the Pivot table fields are collapsed, I want to bold the cells on that row (which is the total of the rows beneath it) from columns P:V

My conditional formatting formula is =AND(ISBLANK($N3:$N128),ISNUMBER($O3:$O128)) and I've applied it to $P$3:$V$128.

When the Pivot table is collapsed, N is blank, but there are numbers in O, so I want the formatting. When I expand the field, the formatting in P:V goes away even though the conditions are still true -- N is still blank and O still contains a number (and my "applies to" range is big enough to cover the entire table when all fields are expanded)

My formula used to just be ISBLANK($N3:$N128) and it worked perfectly. But I added the ISNUMBER because the conditional formatting was applying to all the now-empty rows when the Pivot is fully collapsed and it was a little bit blinding.

What I'm getting:
conditional formatting2.PNG


What I want:
conditional formatting1.PNG
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Select P3:V128 and put in this Conditional Formatting formula.
Excel Formula:
=AND(ISBLANK($N3),ISNUMBER($O3))

Excel will automatically adjust the cell references for each row.

The ISBLANK and ISNUMBER only work on a single value and not a range (unless used in an array formula which is not necessary in this case).
 
Upvote 0
Select P3:V128 and put in this Conditional Formatting formula.
Excel Formula:
=AND(ISBLANK($N3),ISNUMBER($O3))

Excel will automatically adjust the cell references for each row.

The ISBLANK and ISNUMBER only work on a single value and not a range (unless used in an array formula which is not necessary in this case).

Sorry, I hadn't had time to return to my project or try this formula earlier. Thank you, it worked perfectly!
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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