Conditional formatting - Formula is changing the Table header color from the standard blue color to one of the below formatting colors

DennisYoung

New Member
Joined
Jun 27, 2022
Messages
16
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
This is happening when there are only 2 records returned, if the refresh returns more records, then the table header color is correct (Blue)

Formatting1.jpg


Formatting2.jpg


Formatting3.jpg


My format values starting off are =AND(E10="",F10="") and the Applies to is =$E$10 and the conditional formatting it backround color Yellow (First Image)

But when I run it and there are only 2 records to return the format value changes to =AND(E9="",F9="") and the Applies to is =$E$9:$E$11 (Second Image)

When more than 2 records are returned the format value stays at =AND(E10="",F10="") and the Applies to is =$E$10:$E$31 (Third Image) and everything is how it should be

Has anyone seen this before when using conditional formatting or know a way to make it start at row 10 and not change row 9 (Table header row)

The goal is to change just color the cells that meet the criteria and not the header rows
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
But when I run it and there are only 2 records to return the format value changes to =AND(E9="",F9="") and the Applies to is =$E$9:$E$11 (Second Image)
I believe it's the use of 9 and you should be using 10, eg =AND(E10="",F10="") and applies to $E$10:$E$11.
 
Upvote 0
I believe it's the use of 9 and you should be using 10, eg =AND(E10="",F10="") and applies to $E$10:$E$11.
When you first go into the report it is set to =AND(E10="",F10="") and the Applies to is =$E$10 when you run the report with only 2-3 records it is switching to 9 on it's own but if you run it where it returns more than 2-3 records then it stays at 10
 
Upvote 0

Forum statistics

Threads
1,226,462
Messages
6,191,177
Members
453,644
Latest member
karlpravin

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